- Notifications
You must be signed in to change notification settings - Fork28
Commit066bc21
committed
Simplify do_pg_start_backup's API by opening pg_tblspc internally.
do_pg_start_backup() expects its callers to pass in an open DIR pointerfor the pg_tblspc directory, but there's no apparent advantage in that.It complicates the callers without adding any flexibility, and there's norobustness advantage, since we surely have to be prepared for errors duringthe scan of pg_tblspc anyway. In fact, by holding an extra kernel resourceduring operations like the preliminary checkpoint, we might be makingthings a fraction more failure-prone not less. Hence, remove that argumentand open the directory just for the duration of the actual scan.Discussion:https://postgr.es/m/28752.1512413887@sss.pgh.pa.us1 parent561885d commit066bc21
File tree
4 files changed
+11
-31
lines changed- src
- backend
- access/transam
- replication
- include/access
4 files changed
+11
-31
lines changedLines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10206 | 10206 |
| |
10207 | 10207 |
| |
10208 | 10208 |
| |
10209 |
| - | |
| 10209 | + | |
10210 | 10210 |
| |
10211 | 10211 |
| |
10212 | 10212 |
| |
| |||
10297 | 10297 |
| |
10298 | 10298 |
| |
10299 | 10299 |
| |
| 10300 | + | |
10300 | 10301 |
| |
10301 | 10302 |
| |
10302 | 10303 |
| |
| |||
10428 | 10429 |
| |
10429 | 10430 |
| |
10430 | 10431 |
| |
| 10432 | + | |
10431 | 10433 |
| |
10432 | 10434 |
| |
10433 | 10435 |
| |
| |||
10476 | 10478 |
| |
10477 | 10479 |
| |
10478 | 10480 |
| |
10479 |
| - | |
10480 | 10481 |
| |
10481 | 10482 |
| |
10482 | 10483 |
| |
| |||
10511 | 10512 |
| |
10512 | 10513 |
| |
10513 | 10514 |
| |
| 10515 | + | |
10514 | 10516 |
| |
10515 | 10517 |
| |
10516 | 10518 |
| |
|
Lines changed: 2 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 |
| - | |
79 | 78 |
| |
80 | 79 |
| |
81 | 80 |
| |
| |||
85 | 84 |
| |
86 | 85 |
| |
87 | 86 |
| |
88 |
| - | |
89 |
| - | |
90 |
| - | |
91 |
| - | |
92 |
| - | |
93 |
| - | |
94 |
| - | |
95 |
| - | |
96 | 87 |
| |
97 | 88 |
| |
98 | 89 |
| |
99 |
| - | |
| 90 | + | |
100 | 91 |
| |
101 | 92 |
| |
102 | 93 |
| |
| |||
112 | 103 |
| |
113 | 104 |
| |
114 | 105 |
| |
115 |
| - | |
| 106 | + | |
116 | 107 |
| |
117 | 108 |
| |
118 | 109 |
| |
119 | 110 |
| |
120 |
| - | |
121 |
| - | |
122 | 111 |
| |
123 | 112 |
| |
124 | 113 |
| |
|
Lines changed: 4 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
64 | 64 |
| |
65 | 65 |
| |
66 | 66 |
| |
67 |
| - | |
| 67 | + | |
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
| |||
188 | 188 |
| |
189 | 189 |
| |
190 | 190 |
| |
191 |
| - | |
| 191 | + | |
192 | 192 |
| |
193 | 193 |
| |
194 | 194 |
| |
| |||
207 | 207 |
| |
208 | 208 |
| |
209 | 209 |
| |
210 |
| - | |
| 210 | + | |
211 | 211 |
| |
212 | 212 |
| |
213 | 213 |
| |
| |||
690 | 690 |
| |
691 | 691 |
| |
692 | 692 |
| |
693 |
| - | |
694 | 693 |
| |
695 | 694 |
| |
696 | 695 |
| |
| |||
706 | 705 |
| |
707 | 706 |
| |
708 | 707 |
| |
709 |
| - | |
710 |
| - | |
711 |
| - | |
712 |
| - | |
713 |
| - | |
714 |
| - | |
715 |
| - | |
716 |
| - | |
717 |
| - | |
718 |
| - | |
719 |
| - | |
| 708 | + | |
720 | 709 |
| |
721 | 710 |
| |
722 | 711 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
310 | 310 |
| |
311 | 311 |
| |
312 | 312 |
| |
313 |
| - | |
| 313 | + | |
314 | 314 |
| |
315 | 315 |
| |
316 | 316 |
| |
|
0 commit comments
Comments
(0)