Skip to content

Commit

Permalink
enhance ledger db migration logs (#1731)
Browse files Browse the repository at this point in the history
  • Loading branch information
eyusufatik authored Jan 21, 2025
1 parent edc1b31 commit d4a0c85
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ impl<'a> LedgerDBMigrator<'a> {
return Ok(());
}

info!("Checking for pending LedgerDB migrations...");

let dbs_path = &self.ledger_path;

if !dbs_path.join(LEDGER_DB_PATH_SUFFIX).exists() {
Expand All @@ -78,9 +76,14 @@ impl<'a> LedgerDBMigrator<'a> {
"Should mark migrations as executed, otherwise, something is seriously wrong",
);
}

info!("Creating ledger DB for the first time, no migrations to run.");

return Ok(());
}

info!("Checking for pending LedgerDB migrations...");

let column_families_in_db = list_column_families(self.ledger_path);

let all_column_families = merge_column_families(column_families_in_db);
Expand Down

0 comments on commit d4a0c85

Please sign in to comment.