error handling cleanup
This commit is contained in:
parent
3453515601
commit
b5372a40e9
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue