Eliminate a config copy when opening Realms
This commit is contained in:
parent
e30e2ff278
commit
ebfca16d00
|
@ -169,7 +169,7 @@ Group *Realm::read_group()
|
|||
|
||||
SharedRealm Realm::get_shared_realm(Config config)
|
||||
{
|
||||
return RealmCoordinator::get_coordinator(config.path)->get_realm(config);
|
||||
return RealmCoordinator::get_coordinator(config.path)->get_realm(std::move(config));
|
||||
}
|
||||
|
||||
void Realm::update_schema(std::unique_ptr<Schema> schema, uint64_t version)
|
||||
|
|
Loading…
Reference in New Issue