mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 05:56:21 +00:00
Use macro instead of magic numbers
Use predefined macro for invalid bucket number instead of magic numbers.
This commit is contained in:
committed by
Artem Gavrilov
parent
a3baae80bd
commit
58d569f26c
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user