Skip to content

Commit

Permalink
change guc description. fix warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMurloc committed Dec 6, 2023
1 parent 8af2777 commit edbda84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/diskquota.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,9 @@ define_guc_variables(void)
&diskquota_max_quota_probes, 1024 * 1024, 1024 * INIT_QUOTA_MAP_ENTRIES, INT_MAX,
PGC_POSTMASTER, 0, NULL, NULL, NULL);
DefineCustomIntVariable("diskquota.hashmap_overflow_report_timeout",
"Time interval in seconds between shared hash map overflow report.", NULL,
&diskquota_hashmap_overflow_report_timeout, 60, 0, INT_MAX / 1000, PGC_SUSET, 0, NULL, NULL,
NULL);
"The duration between each warning report about the shared hashmap overflow (in seconds).",
NULL, &diskquota_hashmap_overflow_report_timeout, 60, 0, INT_MAX / 1000, PGC_SUSET, 0, NULL,
NULL, NULL);
}

/* ---- Functions for disk quota worker process ---- */
Expand Down
5 changes: 2 additions & 3 deletions src/quotamodel.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,8 @@ static TimestampTz local_disk_quota_reject_last_overflow_report = 0;

#define REJECT_MAP_ENTER(keyPtr, foundPtr) \
shm_hash_enter(disk_quota_reject_map, keyPtr, foundPtr, MAX_DISK_QUOTA_REJECT_ENTRIES, \
"[diskquota] Shared disk quota reject map size limit reached (%d)." \
"Some out-of-limit schemas or roles will be lost" \
"in rejectmap.", \
"[diskquota] Shared disk quota reject map size limit reached (%d). " \
"Some out-of-limit schemas or roles will be lost in rejectmap.", \
&disk_quota_reject_last_overflow_report, MAX_DISK_QUOTA_REJECT_ENTRIES)

#define LOCAL_REJECT_MAP_ENTER(keyPtr, foundPtr) \
Expand Down

0 comments on commit edbda84

Please sign in to comment.