Skip to content

Commit 15475f6

Browse files
committed
Merge branch 'PGPROEE9_6_MULTIMASTER' of https://gitlab.postgrespro.ru/pgpro-dev/postgrespro into PGPROEE9_6_MULTIMASTER
2 parents 992147c + 6c5f328 commit 15475f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/mmts/multimaster.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1896,7 +1896,8 @@ MtmCheckSlots()
18961896
if (slot->in_use
18971897
&& sscanf(slot->data.name.data, MULTIMASTER_SLOT_PATTERN, &nodeId) == 1
18981898
&& BIT_CHECK(Mtm->disabledNodeMask, nodeId-1)
1899-
&& slot->data.confirmed_flush + MtmMaxRecoveryLag < GetXLogInsertRecPtr())
1899+
&& slot->data.confirmed_flush + MtmMaxRecoveryLag < GetXLogInsertRecPtr()
1900+
&& slot->data.confirmed_flush != 0)
19001901
{
19011902
elog(WARNING, "Drop slot for node %d which lag %lld is larger than threshold %d",
19021903
nodeId,

0 commit comments

Comments
 (0)