HBASE-15451 Remove unnecessary wait in MVCC

This commit is contained in:
Yu Li 2016-03-19 21:24:07 +08:00
parent 3a6d683d63
commit d2d8058ab3
1 changed files with 3 additions and 2 deletions

View File

@ -145,8 +145,9 @@ public class MultiVersionConcurrencyControl {
* of the passed in WriteEntry. Thus, the write is visible to MVCC readers. * of the passed in WriteEntry. Thus, the write is visible to MVCC readers.
*/ */
public void completeAndWait(WriteEntry e) { public void completeAndWait(WriteEntry e) {
complete(e); if (!complete(e)) {
waitForRead(e); waitForRead(e);
}
} }
/** /**