From faefec28a78ee7db2abd895c3fe7d3766c743530 Mon Sep 17 00:00:00 2001 From: Vivek Saini Date: Thu, 14 Apr 2022 22:34:02 +0000 Subject: [PATCH] Remove asserts, RW lock can go below zero in cases of aeAcquireLock --- src/readwritelock.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/readwritelock.h b/src/readwritelock.h index 9efed8da4..a7318a29f 100644 --- a/src/readwritelock.h +++ b/src/readwritelock.h @@ -65,7 +65,6 @@ public: void releaseRead() { std::unique_lock rm(m_readLock); m_readCount--; - serverAssert(m_readCount >= 0); m_cv.notify_all(); } @@ -75,7 +74,6 @@ public: if (exclusive) m_writeLock.unlock(); m_writeCount--; - serverAssert(m_writeCount >= 0); m_cv.notify_all(); }