8000 Remove debug assert · postgrespro/postgres_cluster@980a95d · GitHub
[go: up one dir, main page]

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

Appearance settings

Commit 980a95d

Browse files
committed
Remove debug assert
1 parent 8dc4c32 commit 980a95d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

contrib/mmts/multimaster.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,8 +737,9 @@ MtmResetTransaction()
737737
x->isPrepared = false;
738738
x->isSuspended = false;
739739
x->isTwoPhase = false;
740-
x->csn =
740+
x->csn = INVALID_CSN;
741741
x->status = TRANSACTION_STATUS_UNKNOWN;
742+
x->gid[0] = '\0';
742743
}
743744

744745

@@ -1177,7 +1178,7 @@ MtmEndTransaction(MtmCurrentTrans* x, bool commit)
11771178
: ts->status == TRANSACTION_STATUS_COMMITTED ? "committed" : "not prepared",
11781179
ts->xid, ts->gid);
11791180
}
1180-
Assert(ts->xid != 10000);
1181+
//Assert(ts->xid != 10000);
11811182
if (x->csn > ts->csn || Mtm->status == MTM_RECOVERY) {
11821183
Assert(x->csn != INVALID_CSN);
11831184
ts->csn = x->csn;

0 commit comments

Comments
 (0)
0