Skip to content

Commit

Permalink
fix: add flush check in BulkWriter.sendBatchLocked() callback (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Chen committed May 14, 2021
1 parent afa91ff commit ac3db81
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -988,8 +988,10 @@ private void sendBatchLocked(final BulkCommitBatch batch, final boolean flush) {
new Runnable() {
@Override
public void run() {
synchronized (lock) {
scheduleCurrentBatchLocked(flush);
if (flush) {
synchronized (lock) {
scheduleCurrentBatchLocked(/* flush= */ true);
}
}
}
},
Expand Down

0 comments on commit ac3db81

Please sign in to comment.