Commit 82b3776
committed
Fix a problem with parallel workers being unable to restore role.
check_role() tries to verify that the user has permission to become the
requested role, but this is inappropriate in a parallel worker, which
needs to exactly recreate the master's authorization settings. So skip
the check in that case.
This fixes a bug in commit 924bcf4.1 parent 6de6d96 commit 82b3776
File tree
3 files changed
+14
-2
lines changed- src
- backend
- access/transam
- commands
- include/access
3 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
| |||
815 | 818 | | |
816 | 819 | | |
817 | 820 | | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
818 | 824 | | |
819 | 825 | | |
820 | 826 | | |
| |||
942 | 948 | | |
943 | 949 | | |
944 | 950 | | |
| 951 | + | |
945 | 952 | | |
946 | 953 | | |
947 | 954 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
877 | 878 | | |
878 | 879 | | |
879 | 880 | | |
880 | | - | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
881 | 884 | | |
882 | | - | |
| 885 | + | |
| 886 | + | |
883 | 887 | | |
884 | 888 | | |
885 | 889 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
0 commit comments