Update pageserver/src/basebackup.rs

Co-authored-by: Heikki Linnakangas <heikki@neon.tech>
This commit is contained in:
Konstantin Knizhnik
2024-12-04 09:44:48 +02:00
committed by Konstantin Knizhnik
co-authored by Heikki Linnakangas
parent 585672f5fc
commit 3890f5846c
+2 -1
View File
@@ -420,7 +420,8 @@ where
// but now we should handle (skip) it for backward compatibility.
continue;
} else if path == "pg_stat/pgstat.stat" && !normal_shutdown {
// Drop statistic in case of abnormal termination (shtiodown checkopint was not written
// Drop statistic in case of abnormal termination, i.e. if we're not starting from the exact LSN
// of a shutdown checkpoint.
continue;
}
let header = new_tar_header(&path, content.len() as u64)?;