Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0625fd2

Browse files
committed
Fix restoring save point context
1 parent b518b35 commit 0625fd2

File tree

1 file changed

+2
-1
lines changed
  • src/backend/access/transam

1 file changed

+2
-1
lines changed

src/backend/access/transam/xact.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4531,6 +4531,8 @@ RollbackAndReleaseCurrentSubTransaction(void)
45314531
CleanupSubTransaction();
45324532

45334533
s = CurrentTransactionState; /* changed by pop */
4534+
TM->RestoreSavepointContext(s->savepointContext);
4535+
45344536
AssertState(s->blockState == TBLOCK_SUBINPROGRESS ||
45354537
s->blockState == TBLOCK_INPROGRESS ||
45364538
s->blockState == TBLOCK_STARTED);
@@ -5118,7 +5120,6 @@ PopTransaction(void)
51185120

51195121
TM->ReleaseSavepointContext(s->savepointContext);
51205122
CurrentTransactionState = s->parent;
5121-
TM->RestoreSavepointContext(CurrentTransactionState->savepointContext);
51225123

51235124
/* Let's just make sure CurTransactionContext is good */
51245125
CurTransactionContext = s->parent->curTransactionContext;

0 commit comments

Comments
 (0)