aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/pgstat_internal.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2022-10-28 09:19:06 +0200
committerPeter Eisentraut <peter@eisentraut.org>2022-10-28 09:19:06 +0200
commitb1099eca8f38ff5cfaf0901bb91cb6a22f909bc6 (patch)
tree8ef29d9ee5911b059c8ecd2123b50c411cfc7a9e /src/include/utils/pgstat_internal.h
parentd37aa3d35832afde94e100c4d2a9618b3eb76472 (diff)
downloadpostgresql-b1099eca8f38ff5cfaf0901bb91cb6a22f909bc6.tar.gz
postgresql-b1099eca8f38ff5cfaf0901bb91cb6a22f909bc6.zip
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
Diffstat (limited to 'src/include/utils/pgstat_internal.h')
-rw-r--r--src/include/utils/pgstat_internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/utils/pgstat_internal.h b/src/include/utils/pgstat_internal.h
index 627c1389e4c..c869533b282 100644
--- a/src/include/utils/pgstat_internal.h
+++ b/src/include/utils/pgstat_internal.h
@@ -739,7 +739,7 @@ pgstat_copy_changecounted_stats(void *dst, void *src, size_t len,
static inline int
pgstat_cmp_hash_key(const void *a, const void *b, size_t size, void *arg)
{
- AssertArg(size == sizeof(PgStat_HashKey) && arg == NULL);
+ Assert(size == sizeof(PgStat_HashKey) && arg == NULL);
return memcmp(a, b, sizeof(PgStat_HashKey));
}
@@ -749,7 +749,7 @@ pgstat_hash_hash_key(const void *d, size_t size, void *arg)
const PgStat_HashKey *key = (PgStat_HashKey *) d;
uint32 hash;
- AssertArg(size == sizeof(PgStat_HashKey) && arg == NULL);
+ Assert(size == sizeof(PgStat_HashKey) && arg == NULL);
hash = murmurhash32(key->kind);
hash = hash_combine(hash, murmurhash32(key->dboid));