- Notifications
You must be signed in to change notification settings - Fork39
Commite17ab38
committed
[refer #PGPRO-6599]: Avoid race conditions while processing PROFILE_REQUEST and
PROFILE_RESET requests.After initialization of "request" variable in collector.c main loop anotherclient backend could change the value of "collector_hdr->request" variable.Changing this value from "PROFILE_RESET" to "PROFILE_REQUEST" could causedeadlock: "collector" processed "PROFILE_RESET" query while client backendwaits data from the "collector_mq" shared memory message queue. Now we readand write "collector_hdr->request" variable only using "PGWS_COLLECTOR_LOCK"lock.Removed obsolete "read_current_wait()" function definition frompg_wait_sampling.h.tags: pg_wait_sampling1 parentaf53205 commite17ab38
3 files changed
+10
-11
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
446 | 446 |
| |
447 | 447 |
| |
448 | 448 |
| |
449 |
| - | |
| 449 | + | |
450 | 450 |
| |
451 | 451 |
| |
452 | 452 |
| |
453 | 453 |
| |
| 454 | + | |
454 | 455 |
| |
455 | 456 |
| |
456 | 457 |
| |
|
Lines changed: 8 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
590 | 590 |
| |
591 | 591 |
| |
592 | 592 |
| |
593 |
| - | |
| 593 | + | |
| 594 | + | |
594 | 595 |
| |
595 | 596 |
| |
596 |
| - | |
597 |
| - | |
598 |
| - | |
599 | 597 |
| |
| 598 | + | |
600 | 599 |
| |
601 | 600 |
| |
602 | 601 |
| |
| |||
756 | 755 |
| |
757 | 756 |
| |
758 | 757 |
| |
759 |
| - | |
| 758 | + | |
760 | 759 |
| |
761 | 760 |
| |
762 | 761 |
| |
763 | 762 |
| |
764 | 763 |
| |
765 | 764 |
| |
766 | 765 |
| |
767 |
| - | |
768 |
| - | |
769 |
| - | |
770 |
| - | |
| 766 | + | |
| 767 | + | |
771 | 768 |
| |
| 769 | + | |
| 770 | + | |
772 | 771 |
| |
773 | 772 |
| |
774 | 773 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 |
| - | |
79 | 78 |
| |
80 | 79 |
| |
81 | 80 |
| |
|
0 commit comments
Comments
(0)