pageserver: don't try and ingest XLOG_CHECKPOINT_SHUTDOWN on nonzero

shards
This commit is contained in:
John Spray
2025-02-10 14:00:52 +01:00
parent e7118213ab
commit d713260f1a

View File

@@ -1157,6 +1157,7 @@ impl WalIngest {
// See also the neon code changes in the InitWalRecovery() function.
if xlog_checkpoint.oldestActiveXid == pg_constants::INVALID_TRANSACTION_ID
&& info == pg_constants::XLOG_CHECKPOINT_SHUTDOWN
&& self.shard.is_shard_zero()
{
let oldest_active_xid = if pg_version >= 17 {
let mut oldest_active_full_xid = cp.nextXid.value;