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:
larsh 2012-10-31 22:02:09 +00:00
parent 4873d3a441
commit 09873f9d32
1 changed files with 2 additions and 0 deletions

View File

@ -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);