From e8a26aa533e9681a4d2504b1a65a5c37bafc892b Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 22 Dec 2015 11:07:48 -0800 Subject: [PATCH] Fix compilation errors --- shared_realm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared_realm.cpp b/shared_realm.cpp index 9807144f..2e4f2b03 100644 --- a/shared_realm.cpp +++ b/shared_realm.cpp @@ -178,11 +178,11 @@ SharedRealm Realm::get_shared_realm(Config config) realm->update_schema(std::move(target_schema), target_schema_version); } - if (!m_config.read_only) { + if (!realm->m_config.read_only) { // End the read transaction created to validation/update the // schema to avoid pinning the version even if the user never // actually reads data - invalidate(); + realm->invalidate(); } } }