Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
[fix] [broker] Fix typo in CompactedTopicImpl. (apache#22235)
Browse files Browse the repository at this point in the history
  • Loading branch information
thetumbled authored Mar 13, 2024
1 parent 7a4e16a commit 55625d9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
public class CompactedTopicImpl implements CompactedTopic {
static final long NEWER_THAN_COMPACTED = -0xfeed0fbaL;
static final long COMPACT_LEDGER_EMPTY = -0xfeed0fbbL;
static final int DEFAULT_STARTPOINT_CACHE_SIZE = 100;
static final int DEFAULT_MAX_CACHE_SIZE = 100;

private final BookKeeper bk;

Expand Down Expand Up @@ -254,7 +254,7 @@ private static CompletableFuture<CompactedTopicContext> openCompactedLedger(Book
}
}, null);
return promise.thenApply((ledger) -> new CompactedTopicContext(
ledger, createCache(ledger, DEFAULT_STARTPOINT_CACHE_SIZE)));
ledger, createCache(ledger, DEFAULT_MAX_CACHE_SIZE)));
}

private static CompletableFuture<Void> tryDeleteCompactedLedger(BookKeeper bk, long id) {
Expand Down

0 comments on commit 55625d9

Please sign in to comment.