This commit is contained in:
Ari Lazier 2015-10-12 17:18:49 -07:00
parent 8ad1b0907d
commit c81ea6e5be
2 changed files with 3 additions and 2 deletions

View File

@ -444,8 +444,8 @@ void RealmCache::invalidate_all()
{
std::lock_guard<std::mutex> lock(m_mutex);
for (auto &path_realms:m_cache) {
for (auto &realm_iter:path_realms.second) {
for (auto &path_realms : m_cache) {
for (auto &realm_iter : path_realms.second) {
if (auto realm = realm_iter.second.lock()) {
realm->invalidate();
}

View File

@ -92,6 +92,7 @@ static JSClassRef s_globalClass;
realm::Realm::s_global_cache.invalidate_all();
realm::Realm::s_global_cache.clear();
// FIXME - find all realm files in the docs dir and delete them rather than hardcoding these
DeleteRealmFilesAtPath(RealmPathForFile(@"test.realm"));
DeleteRealmFilesAtPath(RealmPathForFile(@"test1.realm"));
DeleteRealmFilesAtPath(RealmPathForFile(@"test2.realm"));