Fix error in cleanup after an error during a migration

This commit is contained in:
Thomas Goyne 2015-09-04 14:54:41 -07:00
parent b7936bb047
commit 95c80c98e6
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ bool Realm::update_schema(std::unique_ptr<Schema> schema, uint64_t version)
cancel_transaction();
}
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;
}
}