Remove asserts, RW lock can go below zero in cases of aeAcquireLock
This commit is contained in:
parent
09067046f6
commit
738f4d44bd
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user