pr fixes
This commit is contained in:
parent
8ad1b0907d
commit
c81ea6e5be
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue