Update pageserver/src/basebackup.rs

Co-authored-by: Heikki Linnakangas <heikki@neon.tech>
This commit is contained in:
Konstantin Knizhnik
2024-10-10 17:12:05 +03:00
committed by Konstantin Knizhnik
parent 3179b9bed2
commit 5d12e5a72d

View File

@@ -258,8 +258,7 @@ where
async fn send_tarball(mut self) -> Result<(), BasebackupError> {
// TODO include checksum
// On normal Postgres shutdown, shutdown checkpoint should be performed and correspondent
// WAL record should be the last record in the WAL.
// Detect if we are creating the basebackup exactly at a shutdown checkpoint.
let normal_shutdown = if let Ok(checkpoint_bytes) =
self.timeline.get_checkpoint(self.lsn, self.ctx).await
{