HBASE-15451 Remove unnecessary wait in MVCC
This commit is contained in:
parent
3a6d683d63
commit
d2d8058ab3
|
@ -145,9 +145,10 @@ public class MultiVersionConcurrencyControl {
|
|||
* of the passed in WriteEntry. Thus, the write is visible to MVCC readers.
|
||||
*/
|
||||
public void completeAndWait(WriteEntry e) {
|
||||
complete(e);
|
||||
if (!complete(e)) {
|
||||
waitForRead(e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Mark the {@link WriteEntry} as complete and advance the read point as much as possible.
|
||||
|
|
Loading…
Reference in New Issue