From 6116c9bf5ea4ac9de94bbca4601dfc921ee22654 Mon Sep 17 00:00:00 2001 From: John Sully Date: Mon, 14 Jun 2021 03:50:47 +0000 Subject: [PATCH] Remove lock Former-commit-id: bb8efe2ed942fd67d091b16bb27f67ccefcbbf19 --- src/StorageCache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/StorageCache.h b/src/StorageCache.h index 2536cf2ec..ed868e74b 100644 --- a/src/StorageCache.h +++ b/src/StorageCache.h @@ -45,11 +45,11 @@ public: bool enumerate(IStorage::callback fn) const { return m_spstorage->enumerate(fn); } void beginWriteBatch(); - void endWriteBatch() { m_spstorage->endWriteBatch(); m_lock.unlock(); } + void endWriteBatch() { m_spstorage->endWriteBatch(); } void batch_lock() { return m_spstorage->batch_lock(); } void batch_unlock() { return m_spstorage->batch_unlock(); } size_t count() const; const StorageCache *clone(); -}; \ No newline at end of file +};