Commit 392b87c
Valeriy Zainullin
Check collector has started in pg_wait_sampling_reset_profile.
The worker might have not started yet or it may never start,
because it's registration was cancelled due to worker limit.
This commit adds a check for NULL value of pgws_collector_hdr->latch.
The previous usage in pg_wait_sampling.c has such a check, we
should do the same here.1 parent fafeda0 commit 392b87c
1 file changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
808 | 808 | | |
809 | 809 | | |
810 | 810 | | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
811 | 817 | | |
812 | 818 | | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
813 | 831 | | |
814 | 832 | | |
815 | 833 | | |
| |||
0 commit comments