forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb757abe
committed
injection_points: Tweak variable-numbered stats to work with pending data
As coded, the module was not using pending entries to store its datalocally before doing a flush to the central dshash with a timedpgstat_report_stat() call. Hence, the flush callback was defined, butfinished by being not used. As a template, this is more efficient thanthe original logic of updating directly the shared memory entries asthis reduces the interactions that need to be done with the pgstatshash table in shared memory.injection_stats_flush_cb() was also missing a pgstat_unlock_entry(), soadd one, while on it.Reviewed-by: Bertrand DrouvotDiscussion:https://postgr.es/m/Z3JbLhKFFm6kKfT8@ip-10-97-1-34.eu-west-3.compute.internal1 parentc9b3d49 commitb757abe
1 file changed
+8
-7
lines changedLines changed: 8 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
| 83 | + | |
| 84 | + | |
| 85 | + | |
83 | 86 |
| |
84 | 87 |
| |
85 | 88 |
| |
| |||
127 | 130 |
| |
128 | 131 |
| |
129 | 132 |
| |
130 |
| - | |
131 |
| - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
132 | 136 |
| |
133 | 137 |
| |
134 | 138 |
| |
135 | 139 |
| |
136 |
| - | |
137 | 140 |
| |
138 | 141 |
| |
139 | 142 |
| |
| |||
168 | 171 |
| |
169 | 172 |
| |
170 | 173 |
| |
171 |
| - | |
172 |
| - | |
| 174 | + | |
| 175 | + | |
173 | 176 |
| |
174 | 177 |
| |
175 | 178 |
| |
176 | 179 |
| |
177 | 180 |
| |
178 | 181 |
| |
179 |
| - | |
180 |
| - | |
181 | 182 |
| |
182 | 183 |
| |
183 | 184 |
| |
|
0 commit comments
Comments
(0)