Skip to content

Commit

Permalink
Formats logs in calc_delete_dependencies() (#3925)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Dec 5, 2024
1 parent c13ca2d commit 058e988
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2245,11 +2245,7 @@ impl AccountsDb {
let mut delete = true;
for (slot, _account_info) in slot_list {
if let Some(count) = store_counts.get(slot).map(|s| s.0) {
debug!(
"calc_delete_dependencies()
slot: {slot},
count len: {count}"
);
debug!("calc_delete_dependencies() slot: {slot}, count len: {count}");
if count == 0 {
// this store CAN be removed
continue;
Expand All @@ -2268,15 +2264,9 @@ impl AccountsDb {
} else {
// a pubkey we were planning to remove is not removing all stores that contain the account
debug!(
"calc_delete_dependencies(),
pubkey: {},
slot_list: {:?},
slot_list_len: {},
ref_count: {}",
pubkey,
slot_list,
"calc_delete_dependencies(), pubkey: {pubkey}, slot list len: {}, \
ref count: {ref_count}, slot list: {slot_list:?}",
slot_list.len(),
ref_count,
);
}

Expand Down

0 comments on commit 058e988

Please sign in to comment.