bookkeeper
bookkeeper copied to clipboard
Fix checkpointComplete invoked twice in SyncThread
Motivation
SyncThread flush would invoke checkpointSource.checkpointComplete twice. it's unnecessary.
Changes
Change org.apache.bookkeeper.bookie.LedgerStorage#flush signature . add doCheckpointComplete parameter.
default value is true, only set to false in org.apache.bookkeeper.bookie.SyncThread#flush
fix old workflow,please see #3455 for detail