Skip to content

Commit

Permalink
Temporary fix for Kotlin - Needs validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Melchior committed Nov 20, 2023
1 parent 7109e7a commit fce8171
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/realm/object-store/shared_realm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ void Realm::update_schema(Schema schema, uint64_t version, MigrationFunction mig
ObjectStore::verify_compatible_for_immutable_and_readonly(
actual_schema.compare(schema, m_config.schema_mode, true));
set_schema(actual_schema, std::move(schema));
ObjectStore::set_schema_keys(read_group(), m_schema);
return;
}

Expand All @@ -447,6 +448,7 @@ void Realm::update_schema(Schema schema, uint64_t version, MigrationFunction mig
if (!was_in_read_transaction)
m_transaction = nullptr;
set_schema(actual_schema, std::move(schema));
ObjectStore::set_schema_keys(read_group(), m_schema);
return;
}
// Either the schema version has changed or we need to do non-migration changes
Expand Down

0 comments on commit fce8171

Please sign in to comment.