diff --git a/src/impl/generic/external_commit_helper.hpp b/src/impl/generic/external_commit_helper.hpp index cc7fe5eb..8bfe43f2 100644 --- a/src/impl/generic/external_commit_helper.hpp +++ b/src/impl/generic/external_commit_helper.hpp @@ -21,7 +21,7 @@ #include namespace realm { -class ClientHistory; +class Replication; namespace _impl { class RealmCoordinator; @@ -38,7 +38,7 @@ private: RealmCoordinator& m_parent; // A shared group used to listen for changes - std::unique_ptr m_history; + std::unique_ptr m_history; SharedGroup m_sg; // The listener thread diff --git a/src/shared_realm.cpp b/src/shared_realm.cpp index bc8495c7..865cbe6b 100644 --- a/src/shared_realm.cpp +++ b/src/shared_realm.cpp @@ -447,8 +447,6 @@ uint64_t Realm::get_schema_version(const realm::Realm::Config &config) void Realm::close() { - invalidate(); - if (m_coordinator) { m_coordinator->unregister_realm(this); }