mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-17 09:06:26 +00:00
always invalidate newly opened realms
This commit is contained in:
parent
81a32909c1
commit
08dd1a41be
@ -179,13 +179,13 @@ void Realm::init(std::shared_ptr<RealmCoordinator> coordinator)
|
|||||||
else {
|
else {
|
||||||
update_schema(std::move(target_schema), target_schema_version);
|
update_schema(std::move(target_schema), target_schema_version);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!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
|
if (!m_config.read_only) {
|
||||||
invalidate();
|
invalidate();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (...) {
|
catch (...) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user