1
0
Fork 0

fix wrong lock usage (did not have any effect except misleading the reader of the code) (#4086)

This commit is contained in:
Jan 2017-12-23 00:19:46 +01:00 committed by GitHub
parent 0a3fa506e0
commit 60ecfcfce4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -411,7 +411,7 @@ int RocksDBTransactionCollection::doUnlock(AccessMode::Type type,
TRI_ASSERT(physical != nullptr);
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
// write mode
physical->unlockWrite();