solana/validator/src
Xiang Zhu 8e3a30c22c
Clean orphaned account snapshot dirs (#30645)
* Clean up orphaned account snapshot hardlink dirs

* fix compilation issues

* debugged, now working.  seeing the orphaned directories deleted

* change back to eprintln + exit for account_path error

* changed eprintln to panic for now

* add test_clean_orphaned_account_snapshot_dirs for codecov check

* address a few comments and nit isseus

* directly unzip, skipped the intermediate array of tuples

* let set_up_account_run_and_snapshot_paths return Result

* 'proper' typo, and comment on return

* use map_err

* use for loop in clean_orphaned_account_snapshot_dirs, removed panic

* add test_set_up_account_run_and_snapshot_paths

* minor, replace .for_each with .all

* rename set_up_account_run_and_snapshot_paths to create_all_accounts_run_and_snapshot_dirs

* remove unnecessary closure return type

* change to for loop

* change match to unwrap_or_else

* remove create_dir_all(&account_path) in create_all

* minor comment cleanup
2023-03-17 15:22:10 -07:00
..
bin Geyser Runtime Reload (#30352) 2023-03-16 17:03:00 -07:00
admin_rpc_service.rs Geyser Runtime Reload (#30352) 2023-03-16 17:03:00 -07:00
bootstrap.rs Add timeout for getting bootstrap RPC peers (#30277) 2023-02-15 14:24:42 -08:00
cli.rs Geyser Runtime Reload (#30352) 2023-03-16 17:03:00 -07:00
dashboard.rs Inlines variables into format strings (#29945) 2023-01-27 06:23:03 +00:00
lib.rs Elides unnecessary lifetimes (#29299) 2022-12-20 12:44:17 -05:00
main.rs Clean orphaned account snapshot dirs (#30645) 2023-03-17 15:22:10 -07:00