Remove asserts, RW lock can go below zero in cases of aeAcquireLock

This commit is contained in:
Vivek Saini 2022-04-14 22:34:02 +00:00 committed by John Sully
parent 09067046f6
commit 738f4d44bd

View File

@ -65,7 +65,6 @@ public:
void releaseRead() {
std::unique_lock<fastlock> 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();
}