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 b518b35 commit 0625fd2Copy full SHA for 0625fd2
src/backend/access/transam/xact.c
@@ -4531,6 +4531,8 @@ RollbackAndReleaseCurrentSubTransaction(void)
4531
CleanupSubTransaction();
4532
4533
s = CurrentTransactionState; /* changed by pop */
4534
+ TM->RestoreSavepointContext(s->savepointContext);
4535
+
4536
AssertState(s->blockState == TBLOCK_SUBINPROGRESS ||
4537
s->blockState == TBLOCK_INPROGRESS ||
4538
s->blockState == TBLOCK_STARTED);
@@ -5118,7 +5120,6 @@ PopTransaction(void)
5118
5120
5119
5121
TM->ReleaseSavepointContext(s->savepointContext);
5122
CurrentTransactionState = s->parent;
- TM->RestoreSavepointContext(CurrentTransactionState->savepointContext);
5123
5124
/* Let's just make sure CurTransactionContext is good */
5125
CurTransactionContext = s->parent->curTransactionContext;
0 commit comments