Skip to content

Commit

Permalink
move timer after early exit (solana-labs#33732)
Browse files Browse the repository at this point in the history
Co-authored-by: HaoranYi <[email protected]>
  • Loading branch information
HaoranYi and HaoranYi authored Oct 17, 2023
1 parent 2c6cc4d commit 673a38c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4554,10 +4554,11 @@ impl AccountsDb {
/// Combine all account data from storages in 'sorted_slots' into ancient append vecs.
/// This keeps us from accumulating append vecs for each slot older than an epoch.
fn combine_ancient_slots(&self, sorted_slots: Vec<Slot>, can_randomly_shrink: bool) {
let mut total = Measure::start("combine_ancient_slots");
if sorted_slots.is_empty() {
return;
}

let mut total = Measure::start("combine_ancient_slots");
let mut guard = None;

// the ancient append vec currently being written to
Expand Down

0 comments on commit 673a38c

Please sign in to comment.