From 95c80c98e63b18d6eae8b0f41c8dba5473e7537f Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 4 Sep 2015 14:54:41 -0700 Subject: [PATCH] Fix error in cleanup after an error during a migration --- shared_realm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared_realm.cpp b/shared_realm.cpp index 55707918..9fe02a0a 100644 --- a/shared_realm.cpp +++ b/shared_realm.cpp @@ -215,7 +215,7 @@ bool Realm::update_schema(std::unique_ptr 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; } }