summaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xact.c
diff options
context:
space:
mode:
authorPeter Eisentraut2022-10-28 07:19:06 +0000
committerPeter Eisentraut2022-10-28 07:19:06 +0000
commitb1099eca8f38ff5cfaf0901bb91cb6a22f909bc6 (patch)
tree8ef29d9ee5911b059c8ecd2123b50c411cfc7a9e /src/backend/access/transam/xact.c
parentd37aa3d35832afde94e100c4d2a9618b3eb76472 (diff)
Remove AssertArg and AssertState
These don't offer anything over plain Assert, and their usage had already been declared obsolescent. Author: Nathan Bossart <[email protected]> Reviewed-by: Michael Paquier <[email protected]> Discussion: https://www.postgresql.org/message-id/20221009210148.GA900071@nathanxps13
Diffstat (limited to 'src/backend/access/transam/xact.c')
-rw-r--r--src/backend/access/transam/xact.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c
index fd5103a78e2..6cb7dab124a 100644
--- a/src/backend/access/transam/xact.c
+++ b/src/backend/access/transam/xact.c
@@ -3250,7 +3250,7 @@ CommitTransactionCommand(void)
s->savepointLevel = savepointLevel;
/* This is the same as TBLOCK_SUBBEGIN case */
- AssertState(s->blockState == TBLOCK_SUBBEGIN);
+ Assert(s->blockState == TBLOCK_SUBBEGIN);
StartSubTransaction();
s->blockState = TBLOCK_SUBINPROGRESS;
}
@@ -3278,7 +3278,7 @@ CommitTransactionCommand(void)
s->savepointLevel = savepointLevel;
/* This is the same as TBLOCK_SUBBEGIN case */
- AssertState(s->blockState == TBLOCK_SUBBEGIN);
+ Assert(s->blockState == TBLOCK_SUBBEGIN);
StartSubTransaction();
s->blockState = TBLOCK_SUBINPROGRESS;
}
@@ -4667,7 +4667,7 @@ RollbackAndReleaseCurrentSubTransaction(void)
CleanupSubTransaction();
s = CurrentTransactionState; /* changed by pop */
- AssertState(s->blockState == TBLOCK_SUBINPROGRESS ||
+ Assert(s->blockState == TBLOCK_SUBINPROGRESS ||
s->blockState == TBLOCK_INPROGRESS ||
s->blockState == TBLOCK_IMPLICIT_INPROGRESS ||
s->blockState == TBLOCK_STARTED);