HBASE-4143 HTable.doPut(List) should check the writebuffer length every so often
addendum by Gary H git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1152057 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
54e4164ce7
commit
e5bbebc507
|
@ -715,11 +715,8 @@ public class HTable implements HTableInterface, Closeable {
|
||||||
|
|
||||||
// we need to periodically see if the writebuffer is full instead of waiting until the end of the List
|
// we need to periodically see if the writebuffer is full instead of waiting until the end of the List
|
||||||
n++;
|
n++;
|
||||||
if (n == DOPUT_WB_CHECK) {
|
if (n % DOPUT_WB_CHECK == 0 && currentWriteBufferSize > writeBufferSize) {
|
||||||
if (autoFlush || currentWriteBufferSize > writeBufferSize) {
|
|
||||||
flushCommits();
|
flushCommits();
|
||||||
n = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (autoFlush || currentWriteBufferSize > writeBufferSize) {
|
if (autoFlush || currentWriteBufferSize > writeBufferSize) {
|
||||||
|
|
Loading…
Reference in New Issue