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
liwen.2022 committed Oct 17, 2023
1 parent 9703558 commit 80a729c
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 80a729c

Please sign in to comment.