HBASE-12728 buffered writes substantially less useful after removal of HTablePool (addendum)

This commit is contained in:
Nick Dimiduk 2015-01-23 12:01:08 -08:00
parent 74adb11f4c
commit 588b43b06b
1 changed files with 4 additions and 0 deletions

View File

@ -1385,6 +1385,10 @@ public class HTable implements HTableInterface {
*/ */
@Override @Override
public void flushCommits() throws IOException { public void flushCommits() throws IOException {
if (mutator == null) {
// nothing to flush if there's no mutator; don't bother creating one.
return;
}
getBufferedMutator().flush(); getBufferedMutator().flush();
} }