diff --git a/object_store.cpp b/object_store.cpp index 48071318..9ecf0b5c 100644 --- a/object_store.cpp +++ b/object_store.cpp @@ -318,8 +318,8 @@ ObjectStore::Schema ObjectStore::schema_from_group(Group *group) { return schema; } -bool ObjectStore::are_indexes_up_to_date(Group *group, Schema &schema) { - for (auto& object_schema:schema) { +bool ObjectStore::indexes_are_up_to_date(Group *group, Schema &schema) { + for (auto &object_schema:schema) { TableRef table = table_for_object_type(group, object_schema.name); if (!table) { continue; diff --git a/object_store.hpp b/object_store.hpp index 7254b7a8..f190d501 100644 --- a/object_store.hpp +++ b/object_store.hpp @@ -57,7 +57,7 @@ namespace realm { static Schema schema_from_group(Group *group); // check if indexes are up to date - if false you need to call update_realm_with_schema - static bool are_indexes_up_to_date(Group *group, Schema &schema); + static bool indexes_are_up_to_date(Group *group, Schema &schema); private: // set a new schema version