mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-11 23:04:29 +00:00
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);
|
std::lock_guard<std::mutex> lock(m_mutex);
|
||||||
|
|
||||||
for (auto &path_realms:m_cache) {
|
for (auto &path_realms : m_cache) {
|
||||||
for (auto &realm_iter:path_realms.second) {
|
for (auto &realm_iter : path_realms.second) {
|
||||||
if (auto realm = realm_iter.second.lock()) {
|
if (auto realm = realm_iter.second.lock()) {
|
||||||
realm->invalidate();
|
realm->invalidate();
|
||||||
}
|
}
|
||||||
|
@ -92,6 +92,7 @@ static JSClassRef s_globalClass;
|
|||||||
realm::Realm::s_global_cache.invalidate_all();
|
realm::Realm::s_global_cache.invalidate_all();
|
||||||
realm::Realm::s_global_cache.clear();
|
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(@"test.realm"));
|
||||||
DeleteRealmFilesAtPath(RealmPathForFile(@"test1.realm"));
|
DeleteRealmFilesAtPath(RealmPathForFile(@"test1.realm"));
|
||||||
DeleteRealmFilesAtPath(RealmPathForFile(@"test2.realm"));
|
DeleteRealmFilesAtPath(RealmPathForFile(@"test2.realm"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user