Content-Length: 288778 | pFad | http://github.com/postgrespro/postgres_cluster/commit/73b401f4f58052c454089d5478856ecd94e05e8a

D4 Fix sending commit of prepared transaction · postgrespro/postgres_cluster@73b401f · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/73b401f4f58052c454089d5478856ecd94e05e8a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy