Skip to content

Commit

Permalink
[ISSUE openmessaging#295] Batch append should also checkQuotaAndWait
Browse files Browse the repository at this point in the history
Change-Id: I608a1912120f124e15df75924ad2a14d8f523645

Co-authored-by: liwen.2022 <[email protected]>
  • Loading branch information
absolute8511 and liwen.2022 committed Jun 25, 2023
1 parent 786c7c7 commit 5d600f7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ private void doBatchAppendInner(long index) throws Exception {
if (null == entry) {
return;
}
checkQuotaAndWait(entry);
batchAppendEntryRequest.addEntry(entry);
if (batchAppendEntryRequest.getTotalSize() >= dLedgerConfig.getMaxBatchPushSize()) {
sendBatchAppendEntryRequest();
Expand Down

0 comments on commit 5d600f7

Please sign in to comment.