From 58d569f26c3c1f323a24f63f439d67fd12474047 Mon Sep 17 00:00:00 2001 From: Artem Gavrilov Date: Wed, 21 Jan 2026 20:21:48 +0200 Subject: [PATCH] Use macro instead of magic numbers Use predefined macro for invalid bucket number instead of magic numbers. --- pg_stat_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pg_stat_monitor.c b/pg_stat_monitor.c index 024fbb7..5b71d71 100644 --- a/pg_stat_monitor.c +++ b/pg_stat_monitor.c @@ -2107,7 +2107,7 @@ pg_stat_monitor_reset(PG_FUNCTION_ARGS) pgsm = pgsm_get_ss(); pgsm_lock_aquire(pgsm, LW_EXCLUSIVE); - hash_entry_dealloc(-1, -1, NULL); + hash_entry_dealloc(INVALID_BUCKET_ID, INVALID_BUCKET_ID, NULL); pgsm_lock_release(pgsm); PG_RETURN_VOID();