Fix compilation errors

This commit is contained in:
Thomas Goyne 2015-12-22 11:07:48 -08:00
parent a3058c6e97
commit e8a26aa533
1 changed files with 2 additions and 2 deletions

View File

@ -178,11 +178,11 @@ SharedRealm Realm::get_shared_realm(Config config)
realm->update_schema(std::move(target_schema), target_schema_version); realm->update_schema(std::move(target_schema), target_schema_version);
} }
if (!m_config.read_only) { if (!realm->m_config.read_only) {
// End the read transaction created to validation/update the // End the read transaction created to validation/update the
// schema to avoid pinning the version even if the user never // schema to avoid pinning the version even if the user never
// actually reads data // actually reads data
invalidate(); realm->invalidate();
} }
} }
} }