Restore running xacts from CLOG on replica startup

This commit is contained in:
Konstantin Knizhnik
2024-04-02 17:04:21 +03:00
committed by Heikki Linnakangas
parent eb0c026aac
commit 315be6a664
2 changed files with 1 additions and 2 deletions

View File

@@ -373,6 +373,7 @@ impl WalIngest {
if info == pg_constants::XLOG_RUNNING_XACTS {
let xlrec = crate::walrecord::XlRunningXacts::decode(&mut buf);
self.checkpoint.oldestActiveXid = xlrec.oldest_running_xid;
self.checkpoint_modified = true;
}
}
_x => {

View File

@@ -1,9 +1,7 @@
import pytest
from fixtures.log_helper import log
from fixtures.neon_fixtures import NeonEnv, wait_replica_caughtup
@pytest.mark.xfail
def test_replication_start(neon_simple_env: NeonEnv):
env = neon_simple_env