Skip to content

Commit 73b401f

Browse files
committed
Fix sending commit of prepared transaction
1 parent ea75de1 commit 73b401f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

contrib/mmts/pglogical_proto.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,6 @@ pglogical_write_commit(StringInfo out, PGLogicalOutputData *data,
125125
{
126126
uint8 flags = 0;
127127

128-
if (MtmIsFilteredTxn) {
129-
return;
130-
}
131128
if (txn->xact_action == XLOG_XACT_COMMIT)
132129
flags = PGLOGICAL_COMMIT;
133130
else if (txn->xact_action == XLOG_XACT_PREPARE)
@@ -139,9 +136,8 @@ pglogical_write_commit(StringInfo out, PGLogicalOutputData *data,
139136
else
140137
Assert(false);
141138

142-
#if 0
143139
if (flags == PGLOGICAL_COMMIT || flags == PGLOGICAL_PREPARE) {
144-
if (mm->isLocal) {
140+
if (MtmIsFilteredTxn) {
145141
return;
146142
}
147143
} else {
@@ -151,7 +147,6 @@ pglogical_write_commit(StringInfo out, PGLogicalOutputData *data,
151147
return;
152148
}
153149
}
154-
#endif
155150

156151
pq_sendbyte(out, 'C'); /* sending COMMIT */
157152

0 commit comments

Comments
 (0)