mirror of
https://github.com/NLnetLabs/routinator.git
synced 2024-05-19 06:50:04 +00:00
Don’t try to delete a broken RRDP archive twice during cleanup. (#956)
This PR fixes an issue where the RRDP collector tried to delete a corrupt archive twice during cleanup resulting in a fatal error.
This commit is contained in:
@@ -531,7 +531,12 @@ impl<'a> Run<'a> {
|
||||
entry_path.clone(), retain
|
||||
) {
|
||||
Ok(some) => some,
|
||||
Err(err) if err.should_retry() => false,
|
||||
Err(err) if err.should_retry() => {
|
||||
// The RrdpArchive code has deleted the file already
|
||||
// in this case, so we mustn’t do it again, so we
|
||||
// pretend we want to keep it.
|
||||
true
|
||||
}
|
||||
Err(_) => return Err(Fatal),
|
||||
};
|
||||
if !keep {
|
||||
|
||||
Reference in New Issue
Block a user