mirror of https://gitee.com/bigwinds/arangodb
fix wrong lock usage (did not have any effect except misleading the reader of the code) (#4086)
This commit is contained in:
parent
0a3fa506e0
commit
60ecfcfce4
|
@ -411,7 +411,7 @@ int RocksDBTransactionCollection::doUnlock(AccessMode::Type type,
|
||||||
TRI_ASSERT(physical != nullptr);
|
TRI_ASSERT(physical != nullptr);
|
||||||
|
|
||||||
LOG_TRX(_transaction, nestingLevel) << "write-unlocking collection " << _cid;
|
LOG_TRX(_transaction, nestingLevel) << "write-unlocking collection " << _cid;
|
||||||
if (!AccessMode::isExclusive(type)) {
|
if (AccessMode::isExclusive(type)) {
|
||||||
// exclusive locking means we'll be releasing the collection's RW lock in
|
// exclusive locking means we'll be releasing the collection's RW lock in
|
||||||
// write mode
|
// write mode
|
||||||
physical->unlockWrite();
|
physical->unlockWrite();
|
||||||
|
|
Loading…
Reference in New Issue