Fix lock mismatch
Former-commit-id: 98eb0e778bc3a5ff7da917d39997b2fdb4adbca6
This commit is contained in:
parent
b85cbbceee
commit
ef41f96633
@ -140,5 +140,6 @@ size_t StorageCache::count() const
|
|||||||
|
|
||||||
void StorageCache::beginWriteBatch() {
|
void StorageCache::beginWriteBatch() {
|
||||||
serverAssert(GlobalLocksAcquired()); // Otherwise we deadlock
|
serverAssert(GlobalLocksAcquired()); // Otherwise we deadlock
|
||||||
|
m_lock.lock();
|
||||||
m_spstorage->beginWriteBatch();
|
m_spstorage->beginWriteBatch();
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user