mutateRowsWithLocks might require updatesLock.readLock with waitTime=0. ( cuijianwei)

This commit is contained in:
Lars Hofhansl 2014-07-31 16:28:51 -07:00
parent 1441ec9c0c
commit 1326d329ee
1 changed files with 1 additions and 1 deletions

View File

@ -4992,7 +4992,7 @@ public class HRegion implements HeapSize { // , Writable{
acquiredRowLocks.add(getRowLock(row));
}
// 3. Region lock
lock(this.updatesLock.readLock(), acquiredRowLocks.size());
lock(this.updatesLock.readLock(), acquiredRowLocks.size() == 0 ? 1 : acquiredRowLocks.size());
locked = true;
// Get a mvcc write number
mvccNum = MultiVersionConsistencyControl.getPreAssignedWriteNumber(this.sequenceId);