Skip to content

Commit

Permalink
optimize: wakeup pusher after pending response
Browse files Browse the repository at this point in the history
Change-Id: I0a5206902443bf8089abdab65713624f687c6ee6
  • Loading branch information
absolute8511 committed Oct 17, 2023
1 parent 03d9ca0 commit fcabd3b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,7 @@ private void sendBatchAppendEntryRequest() throws Exception {
responseFuture.whenComplete((x, ex) -> {
try {
pendingTotalSize.addAndGet(-1 * entriesSize);
wakeup();
PreConditions.check(ex == null, DLedgerResponseCode.UNKNOWN);
DLedgerResponseCode responseCode = DLedgerResponseCode.valueOf(x.getCode());
switch (responseCode) {
Expand Down

0 comments on commit fcabd3b

Please sign in to comment.