From 7fe1f4f9bf1a44fdddccd8928edacfc20c3f8f23 Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Thu, 25 Jan 2024 08:56:47 +0200 Subject: [PATCH] Make ruff happy --- pgxn/neon/walproposer_pg.c | 5 ++--- test_runner/regress/test_hot_standby.py | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pgxn/neon/walproposer_pg.c b/pgxn/neon/walproposer_pg.c index 95739c0d9a..7c23ff569f 100644 --- a/pgxn/neon/walproposer_pg.c +++ b/pgxn/neon/walproposer_pg.c @@ -1843,7 +1843,7 @@ CombineHotStanbyFeedbacks(HotStandbyFeedback *hs, WalProposer *wp) for (int i = 0; i < wp->n_safekeepers; i++) { - elog(LOG, "hs.ts=%ld hs.xmin=%ld", wp->safekeeper[i].appendResponse.hs.ts, wp->safekeeper[i].appendResponse.hs.xmin); + elog(LOG, "hs.ts=%ld hs.xmin=%d", wp->safekeeper[i].appendResponse.hs.ts, XidFromFullTransactionId(wp->safekeeper[i].appendResponse.hs.xmin)); if (wp->safekeeper[i].appendResponse.hs.ts != 0) { HotStandbyFeedback *skhs = &wp->safekeeper[i].appendResponse.hs; @@ -1925,8 +1925,7 @@ walprop_pg_process_safekeeper_feedback(WalProposer *wp, XLogRecPtr commitLsn) EpochFromFullTransactionId(hsFeedback.xmin), XidFromFullTransactionId(hsFeedback.catalog_xmin), EpochFromFullTransactionId(hsFeedback.catalog_xmin)); - } else - elog(LOG, "Skip HSFeedback ts=%ld, xmin=%d, catalog_xmin=%d", hsFeedback.ts, XidFromFullTransactionId(hsFeedback.xmin), XidFromFullTransactionId(hsFeedback.catalog_xmin)); + } } static XLogRecPtr diff --git a/test_runner/regress/test_hot_standby.py b/test_runner/regress/test_hot_standby.py index d9ea95266b..0497e1965c 100644 --- a/test_runner/regress/test_hot_standby.py +++ b/test_runner/regress/test_hot_standby.py @@ -5,6 +5,7 @@ import time from fixtures.log_helper import log from fixtures.neon_fixtures import NeonEnv, wait_replica_caughtup + # Check for corrupted WAL messages which might otherwise go unnoticed if # reconnection fixes this. def scan_standby_log_for_errors(secondary):