Update pageserver/src/basebackup.rs

Co-authored-by: Heikki Linnakangas <heikki@neon.tech>
This commit is contained in:
Konstantin Knizhnik
2024-10-09 10:01:58 +03:00
committed by Konstantin Knizhnik
parent 585672f5fc
commit 3890f5846c

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)?;