Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 7acf8ae

Browse files
authored
Fix conflicts...
1 parent 8eafd30 commit 7acf8ae

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

runtime/src/accounts_db.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -451,12 +451,8 @@ impl Default for AccountsDB {
451451
.build()
452452
.unwrap(),
453453
min_num_stores: num_threads,
454-
<<<<<<< HEAD
455454
bank_hashes: RwLock::new(HashMap::default()),
456-
=======
457-
bank_hashes: RwLock::new(bank_hashes),
458455
dont_cleanup_dead_slots: AtomicBool::new(false),
459-
>>>>>>> 5d9130a3c... Hack to skip cleanup_dead_slots upon snapshot load
460456
}
461457
}
462458
}
@@ -1172,17 +1168,11 @@ impl AccountsDB {
11721168
dead_slots
11731169
}
11741170

1175-
<<<<<<< HEAD
1176-
fn cleanup_dead_slots(&self, dead_slots: &mut HashSet<Slot>, last_root: u64) {
1177-
// a slot is not totally dead until it is older than the root
1178-
dead_slots.retain(|slot| *slot < last_root);
1179-
=======
11801171
fn cleanup_dead_slots(&self, dead_slots: &mut HashSet<Slot>) {
11811172
if self.dont_cleanup_dead_slots.load(Ordering::Relaxed) {
11821173
return;
11831174
}
11841175

1185-
>>>>>>> 5d9130a3c... Hack to skip cleanup_dead_slots upon snapshot load
11861176
if !dead_slots.is_empty() {
11871177
{
11881178
let mut index = self.accounts_index.write().unwrap();

0 commit comments

Comments
 (0)