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

Commit0625fd2

Browse files
committed
Fix restoring save point context
1 parentb518b35 commit0625fd2

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)

[8]ページ先頭

©2009-2025 Movatter.jp