StevenLuMT commented on code in PR #3342:
URL: https://github.com/apache/bookkeeper/pull/3342#discussion_r901550399
##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/SingleDirectoryDbLedgerStorage.java:
##########
@@ -161,7 +164,7 @@ public SingleDirectoryDbLedgerStorage(ServerConfiguration
conf, LedgerManager le
this.writeCacheMaxSize = writeCacheSize;
this.writeCache = new WriteCache(allocator, writeCacheMaxSize / 2);
this.writeCacheBeingFlushed = new WriteCache(allocator,
writeCacheMaxSize / 2);
-
+ this.writeCacheLastFlushed = new WriteCache(allocator,
writeCacheMaxSize / 2);
Review Comment:
>
@merlimat
thanks for your suggestion,I have update the init code
<img width="1248" alt="image"
src="https://user-images.githubusercontent.com/42990025/174589904-f7900999-cc3e-4921-9618-5ba182f9596a.png">
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]