Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit69d8dd9

Browse files
knizhnikkelvich
authored andcommitted
Fix sending commit of prepared transaction
1 parentb8c0a63 commit69d8dd9

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

‎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
uint8flags=0;
127127

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

142-
#if0
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)

[8]ページ先頭

©2009-2025 Movatter.jp