Skip to content

Commit

Permalink
Adjust blockstore open logs to say blockstore instead of database (so…
Browse files Browse the repository at this point in the history
…lana-labs#34672)

Additionally, make the log before/after the open more similar so it is
more clear while skimming logs that they correspond to each other.
  • Loading branch information
steviez authored Jan 6, 2024
1 parent 6a9a890 commit dce3ce3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ledger/src/blockstore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ impl Blockstore {
adjust_ulimit_nofile(options.enforce_ulimit_nofile)?;

// Open the database
let mut measure = Measure::start("open");
info!("Opening database at {:?}", blockstore_path);
let mut measure = Measure::start("blockstore open");
info!("Opening blockstore at {:?}", blockstore_path);
let db = Database::open(&blockstore_path, options)?;

let meta_cf = db.column();
Expand Down Expand Up @@ -353,7 +353,7 @@ impl Blockstore {
let max_root = AtomicU64::new(max_root);

measure.stop();
info!("{:?} {}", blockstore_path, measure);
info!("Opening blockstore done; {measure}");
let blockstore = Blockstore {
ledger_path: ledger_path.to_path_buf(),
db,
Expand Down

0 comments on commit dce3ce3

Please sign in to comment.