mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-17 09:06:26 +00:00
Fix error in cleanup after an error during a migration
This commit is contained in:
parent
b7936bb047
commit
95c80c98e6
@ -215,7 +215,7 @@ bool Realm::update_schema(std::unique_ptr<Schema> schema, uint64_t version)
|
|||||||
cancel_transaction();
|
cancel_transaction();
|
||||||
}
|
}
|
||||||
m_config.schema_version = old_config.schema_version;
|
m_config.schema_version = old_config.schema_version;
|
||||||
m_config.schema = std::move(m_config.schema);
|
m_config.schema = std::move(old_config.schema);
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user