(cherry picked from commit 5ccaa6336a)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
			
			
This commit is contained in:
		@@ -1383,10 +1383,10 @@ fn get_stake_percent_in_gossip(bank: &Bank, cluster_info: &ClusterInfo, log: boo
 | 
			
		||||
 | 
			
		||||
// Cleanup anything that looks like an accounts append-vec
 | 
			
		||||
fn cleanup_accounts_path(account_path: &std::path::Path) {
 | 
			
		||||
    if std::fs::remove_dir_all(account_path).is_err() {
 | 
			
		||||
    if let Err(e) = std::fs::remove_dir_all(account_path) {
 | 
			
		||||
        warn!(
 | 
			
		||||
            "encountered error removing accounts path: {:?}",
 | 
			
		||||
            account_path
 | 
			
		||||
            "encountered error removing accounts path: {:?}: {}",
 | 
			
		||||
            account_path, e
 | 
			
		||||
        );
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user