mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +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:
@@ -3084,7 +3084,7 @@ ReorderBufferSetBaseSnapshot(ReorderBuffer *rb, TransactionId xid,
|
||||
ReorderBufferTXN *txn;
|
||||
bool is_new;
|
||||
|
||||
AssertArg(snap != NULL);
|
||||
Assert(snap != NULL);
|
||||
|
||||
/*
|
||||
* Fetch the transaction to operate on. If we know it's a subtransaction,
|
||||
|
||||
@@ -452,7 +452,7 @@ ReplicationSlotAcquire(const char *name, bool nowait)
|
||||
ReplicationSlot *s;
|
||||
int active_pid;
|
||||
|
||||
AssertArg(name != NULL);
|
||||
Assert(name != NULL);
|
||||
|
||||
retry:
|
||||
Assert(MyReplicationSlot == NULL);
|
||||
|
||||
Reference in New Issue
Block a user