This repository was archived by the owner on Jan 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff 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- >>>>>>> 5 d9130a3c... 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- >>>>>>> 5 d9130a3c... 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 ( ) ;
You can’t perform that action at this time.
0 commit comments