HBASE-7051 CheckAndPut should properly read MVCC
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1404377 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4873d3a441
commit
09873f9d32
|
@ -2395,6 +2395,8 @@ public class HRegion implements HeapSize { // , Writable{
|
||||||
|
|
||||||
// Lock row
|
// Lock row
|
||||||
Integer lid = getLock(lockId, get.getRow(), true);
|
Integer lid = getLock(lockId, get.getRow(), true);
|
||||||
|
// wait for all previous transactions to complete (with lock held)
|
||||||
|
mvcc.completeMemstoreInsert(mvcc.beginMemstoreInsert());
|
||||||
List<KeyValue> result = null;
|
List<KeyValue> result = null;
|
||||||
try {
|
try {
|
||||||
result = get(get, false);
|
result = get(get, false);
|
||||||
|
|
Loading…
Reference in New Issue