Adjust blockstore open logs to say blockstore instead of database (#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.
This commit is contained in:
steviez 2024-01-05 21:23:39 -06:00 committed by GitHub
parent 6a9a89064b
commit dce3ce3734
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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();
@ -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,