mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +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:
@@ -44,7 +44,7 @@ pgstat_reset_replslot(const char *name)
|
||||
{
|
||||
ReplicationSlot *slot;
|
||||
|
||||
AssertArg(name != NULL);
|
||||
Assert(name != NULL);
|
||||
|
||||
/* Check if the slot exits with the given name. */
|
||||
slot = SearchNamedReplicationSlot(name, true);
|
||||
@@ -213,7 +213,7 @@ get_replslot_index(const char *name)
|
||||
{
|
||||
ReplicationSlot *slot;
|
||||
|
||||
AssertArg(name != NULL);
|
||||
Assert(name != NULL);
|
||||
|
||||
slot = SearchNamedReplicationSlot(name, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user