mutateRowsWithLocks might require updatesLock.readLock with waitTime=0. ( cuijianwei)
This commit is contained in:
parent
1441ec9c0c
commit
1326d329ee
|
@ -4992,7 +4992,7 @@ public class HRegion implements HeapSize { // , Writable{
|
||||||
acquiredRowLocks.add(getRowLock(row));
|
acquiredRowLocks.add(getRowLock(row));
|
||||||
}
|
}
|
||||||
// 3. Region lock
|
// 3. Region lock
|
||||||
lock(this.updatesLock.readLock(), acquiredRowLocks.size());
|
lock(this.updatesLock.readLock(), acquiredRowLocks.size() == 0 ? 1 : acquiredRowLocks.size());
|
||||||
locked = true;
|
locked = true;
|
||||||
// Get a mvcc write number
|
// Get a mvcc write number
|
||||||
mvccNum = MultiVersionConsistencyControl.getPreAssignedWriteNumber(this.sequenceId);
|
mvccNum = MultiVersionConsistencyControl.getPreAssignedWriteNumber(this.sequenceId);
|
||||||
|
|
Loading…
Reference in New Issue