Make clippy happy

This commit is contained in:
Konstantin Knizhnik
2024-10-02 18:46:26 +03:00
parent 0fcf20075a
commit 953ad21104

View File

@@ -280,6 +280,7 @@ where
} else {
0
}) as u64);
let normal_shutdown = checkpoint_end_lsn == self.lsn;
let lazy_slru_download = self.timeline.get_lazy_slru_download() && !self.full_backup;
@@ -418,11 +419,9 @@ where
// In future we will not generate AUX record for "pg_logical/replorigin_checkpoint" at all,
// but now we should handle (skip) it for backward compatibility.
continue;
} else if path == "pg_stat/pgstat.stat" {
if checkpoint_end_lsn != self.lsn {
// Drop statistic in case of abnormal termination (shtiodown checkopint was not written
continue;
}
} else if path == "pg_stat/pgstat.stat" && !normal_shutdown {
// Drop statistic in case of abnormal termination (shtiodown checkopint was not written
continue;
}
let header = new_tar_header(&path, content.len() as u64)?;
self.ar