Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e6518cc

Browse files
committed
bug in mtm-proto: MtmIsFilteredTxn is only valid for prepare, but not for precommit
1 parent e0b9e2e commit e6518cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pglogical_proto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ pglogical_write_prepare(StringInfo out, PGLogicalOutputData *data,
485485
uint8 event = *txn->state_3pc ? PGLOGICAL_PRECOMMIT_PREPARED : PGLOGICAL_PREPARE;
486486

487487
/* COMMIT and PREPARE are preceded by BEGIN, which set MtmIsFilteredTxn flag */
488-
if (MtmIsFilteredTxn)
488+
if (MtmIsFilteredTxn && event == PGLOGICAL_PREPARE)
489489
return;
490490

491491
/* send the event fields */

0 commit comments

Comments
 (0)