Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa203e7 commit ee01f70Copy full SHA for ee01f70
src/backend/access/transam/twophase.c
@@ -2375,6 +2375,7 @@ PrepareRedoRemove(TransactionId xid, bool giveWarning)
2375
{
2376
GlobalTransaction gxact = NULL;
2377
int i;
2378
+ bool found = false;
2379
2380
Assert(RecoveryInProgress());
2381
@@ -2386,6 +2387,7 @@ PrepareRedoRemove(TransactionId xid, bool giveWarning)
2386
2387
if (gxact->xid == xid)
2388
2389
Assert(gxact->inredo);
2390
+ found = true;
2391
break;
2392
}
2393
@@ -2394,7 +2396,7 @@ PrepareRedoRemove(TransactionId xid, bool giveWarning)
2394
2396
/*
2395
2397
* Just leave if there is nothing, this is expected during WAL replay.
2398
*/
- if (gxact == NULL)
2399
+ if (!found)
2400
return;
2401
2402
0 commit comments