Fix catching error in test_replication_lag

This commit is contained in:
Konstantin Knizhnik
2024-02-01 16:31:43 +02:00
parent 28475c660f
commit 32f4a56327
2 changed files with 5 additions and 3 deletions

View File

@@ -167,6 +167,10 @@ impl WalSenders {
fn record_standby_reply(self: &Arc<WalSenders>, id: WalSenderId, reply: &StandbyReply) {
let mut shared = self.mutex.lock();
let slot = shared.get_slot_mut(id);
info!(
"Record standby reply: ts={} apply_lsn={}",
reply.reply_ts, reply.apply_lsn
);
match &mut slot.feedback {
ReplicationFeedback::Standby(sf) => sf.reply = *reply,
ReplicationFeedback::Pageserver(_) => {