forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita5fe473
committed
Minor cleanup for access/transam/parallel.c.
ParallelMessagePending *must* be marked volatile, because it's setby a signal handler. On the other hand, it's pointless forHandleParallelMessageInterrupt to save/restore errno; that must be,and is, done at the outer level of the SIGUSR1 signal handler.Calling CHECK_FOR_INTERRUPTS() inside HandleParallelMessages, which itselfis called from CHECK_FOR_INTERRUPTS(), seems both useless and hazardous.The comment claiming that this is needed to handle the error queue goingaway is certainly misguided, in any case.Improve a couple of error message texts, and useERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE to report loss of parallel workerconnection, since that's what's used in e.g. tqueue.c. (Maybe it would beworth inventing a dedicated ERRCODE for this type of failure? But I do notthink ERRCODE_INTERNAL_ERROR is appropriate.)Minor stylistic cleanups.1 parent887feef commita5fe473
File tree
2 files changed
+18
-20
lines changed- src
- backend/access/transam
- include/access
2 files changed
+18
-20
lines changedLines changed: 12 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| 17 | + | |
17 | 18 |
| |
18 | 19 |
| |
19 |
| - | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
| 38 | + | |
38 | 39 |
| |
39 | 40 |
| |
40 | 41 |
| |
| |||
94 | 95 |
| |
95 | 96 |
| |
96 | 97 |
| |
97 |
| - | |
| 98 | + | |
98 | 99 |
| |
99 | 100 |
| |
100 | 101 |
| |
| |||
106 | 107 |
| |
107 | 108 |
| |
108 | 109 |
| |
109 |
| - | |
| 110 | + | |
110 | 111 |
| |
111 | 112 |
| |
112 | 113 |
| |
113 | 114 |
| |
114 | 115 |
| |
| 116 | + | |
115 | 117 |
| |
116 | 118 |
| |
117 | 119 |
| |
| |||
681 | 683 |
| |
682 | 684 |
| |
683 | 685 |
| |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
684 | 690 |
| |
685 | 691 |
| |
686 | 692 |
| |
687 | 693 |
| |
688 |
| - | |
689 |
| - | |
690 | 694 |
| |
691 | 695 |
| |
692 | 696 |
| |
693 |
| - | |
694 |
| - | |
695 | 697 |
| |
696 | 698 |
| |
697 | 699 |
| |
| |||
742 | 744 |
| |
743 | 745 |
| |
744 | 746 |
| |
745 |
| - | |
746 |
| - | |
747 |
| - | |
748 |
| - | |
749 |
| - | |
| 747 | + | |
| 748 | + | |
750 | 749 |
| |
751 | 750 |
| |
752 | 751 |
| |
| |||
833 | 832 |
| |
834 | 833 |
| |
835 | 834 |
| |
836 |
| - | |
| 835 | + | |
837 | 836 |
| |
838 | 837 |
| |
839 | 838 |
| |
|
Lines changed: 6 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
23 | 22 |
| |
24 | 23 |
| |
25 | 24 |
| |
| |||
47 | 46 |
| |
48 | 47 |
| |
49 | 48 |
| |
50 |
| - | |
| 49 | + | |
51 | 50 |
| |
52 | 51 |
| |
53 | 52 |
| |
54 | 53 |
| |
55 | 54 |
| |
56 | 55 |
| |
57 | 56 |
| |
58 |
| - | |
| 57 | + | |
59 | 58 |
| |
60 |
| - | |
61 |
| - | |
62 |
| - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
63 | 62 |
| |
64 | 63 |
| |
65 | 64 |
| |
66 | 65 |
| |
67 | 66 |
| |
68 | 67 |
| |
69 |
| - | |
| 68 | + | |
70 | 69 |
| |
71 | 70 |
|
0 commit comments
Comments
(0)