Skip to content

Commit

Permalink
Change order of doGcLedgers and extractMetaFromEntryLogs (apache#3869)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlg99 authored and Anup Ghatage committed Jul 12, 2024
1 parent 5d15883 commit f9a5d70
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -410,13 +410,14 @@ public void runWithFlags(boolean force, boolean suspendMajor, boolean suspendMin
compactor.cleanUpAndRecover();

try {
// Extract all of the ledger ID's that comprise all of the entry logs
// (except for the current new one which is still being written to).
extractMetaFromEntryLogs();

// gc inactive/deleted ledgers
// this is used in extractMetaFromEntryLogs to calculate the usage of entry log
doGcLedgers();

// Extract all of the ledger ID's that comprise all of the entry logs
// (except for the current new one which is still being written to).
extractMetaFromEntryLogs();

// gc entry logs
doGcEntryLogs();

Expand Down

0 comments on commit f9a5d70

Please sign in to comment.