summaryrefslogtreecommitdiff
path: root/contrib/bloom
diff options
context:
space:
mode:
authorMichael Paquier2024-12-30 09:48:18 +0000
committerMichael Paquier2024-12-30 09:48:18 +0000
commitb757abefc0419c9b742222e1dfe70c73aff67364 (patch)
tree8466663aa8fd53e8519ccad939d15f7e62cb3d85 /contrib/bloom
parentc9b3d4909bbfcaa8cc2ed434d12a562fb30fe422 (diff)
injection_points: Tweak variable-numbered stats to work with pending data
As coded, the module was not using pending entries to store its data locally before doing a flush to the central dshash with a timed pgstat_report_stat() call. Hence, the flush callback was defined, but finished by being not used. As a template, this is more efficient than the original logic of updating directly the shared memory entries as this reduces the interactions that need to be done with the pgstats hash table in shared memory. injection_stats_flush_cb() was also missing a pgstat_unlock_entry(), so add one, while on it. Reviewed-by: Bertrand Drouvot Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'contrib/bloom')
0 files changed, 0 insertions, 0 deletions