mirror of
https://github.com/postgres/postgres.git
synced 2025-11-28 11:44:57 +03:00
Remove AssertArg and AssertState
These don't offer anything over plain Assert, and their usage had already been declared obsolescent. Author: Nathan Bossart <nathandbossart@gmail.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://www.postgresql.org/message-id/20221009210148.GA900071@nathanxps13
This commit is contained in:
@@ -389,8 +389,8 @@ MultiXactIdCreate(TransactionId xid1, MultiXactStatus status1,
|
||||
MultiXactId newMulti;
|
||||
MultiXactMember members[2];
|
||||
|
||||
AssertArg(TransactionIdIsValid(xid1));
|
||||
AssertArg(TransactionIdIsValid(xid2));
|
||||
Assert(TransactionIdIsValid(xid1));
|
||||
Assert(TransactionIdIsValid(xid2));
|
||||
|
||||
Assert(!TransactionIdEquals(xid1, xid2) || (status1 != status2));
|
||||
|
||||
@@ -445,8 +445,8 @@ MultiXactIdExpand(MultiXactId multi, TransactionId xid, MultiXactStatus status)
|
||||
int i;
|
||||
int j;
|
||||
|
||||
AssertArg(MultiXactIdIsValid(multi));
|
||||
AssertArg(TransactionIdIsValid(xid));
|
||||
Assert(MultiXactIdIsValid(multi));
|
||||
Assert(TransactionIdIsValid(xid));
|
||||
|
||||
/* MultiXactIdSetOldestMember() must have been called already. */
|
||||
Assert(MultiXactIdIsValid(OldestMemberMXactId[MyBackendId]));
|
||||
|
||||
Reference in New Issue
Block a user