forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit17d3fcd
committed
Fix bug that causes to report waiting in PS display twice, in hot standby.
Previously "waiting" could appear twice via PS in case of lock conflictin hot standby mode. Specifically this issue happend when the delayin WAL application determined by max_standby_archive_delay andmax_standby_streaming_delay had passed but it took more than 500 msecto cancel all the conflicting transactions. Especially we can observe thiseasily by setting those delay parameters to -1.The cause of this issue was that WaitOnLock() andResolveRecoveryConflictWithVirtualXIDs() added "waiting" tothe process title in that case. This commit preventsResolveRecoveryConflictWithVirtualXIDs() from reporting waitingin case of lock conflict, to fix the bug.Back-patch to all back branches.Author: Masahiko SawadaReviewed-by: Fujii MasaoDiscussion:https://postgr.es/m/CA+fd4k4mXWTwfQLS3RPwGr4xnfAEs1ysFfgYHvmmoUgv6Zxvmg@mail.gmail.com1 parent71d60e2 commit17d3fcd
1 file changed
+22
-8
lines changedLines changed: 22 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 |
| - | |
| 46 | + | |
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
| |||
216 | 216 |
| |
217 | 217 |
| |
218 | 218 |
| |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
219 | 223 |
| |
220 | 224 |
| |
221 | 225 |
| |
222 |
| - | |
| 226 | + | |
223 | 227 |
| |
224 |
| - | |
| 228 | + | |
225 | 229 |
| |
226 | 230 |
| |
227 | 231 |
| |
228 | 232 |
| |
229 | 233 |
| |
230 | 234 |
| |
231 |
| - | |
| 235 | + | |
| 236 | + | |
232 | 237 |
| |
233 | 238 |
| |
234 | 239 |
| |
| |||
243 | 248 |
| |
244 | 249 |
| |
245 | 250 |
| |
246 |
| - | |
| 251 | + | |
247 | 252 |
| |
248 | 253 |
| |
249 | 254 |
| |
| |||
311 | 316 |
| |
312 | 317 |
| |
313 | 318 |
| |
314 |
| - | |
| 319 | + | |
| 320 | + | |
315 | 321 |
| |
316 | 322 |
| |
317 | 323 |
| |
| |||
339 | 345 |
| |
340 | 346 |
| |
341 | 347 |
| |
342 |
| - | |
| 348 | + | |
| 349 | + | |
343 | 350 |
| |
344 | 351 |
| |
345 | 352 |
| |
| |||
402 | 409 |
| |
403 | 410 |
| |
404 | 411 |
| |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
405 | 418 |
| |
406 |
| - | |
| 419 | + | |
| 420 | + | |
407 | 421 |
| |
408 | 422 |
| |
409 | 423 |
| |
|
0 commit comments
Comments
(0)