forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7887453
committed
Fix backup canceling
Assert-enabled build crashes but without asserts it works by wrong way:it may not reset forcing full page write and preventing from startingexclusive backup with the same name as cancelled.Patch replaces pair of booleansnonexclusive_backup_running/exclusive_backup_running to single enum tocorrectly describe backup state.Backpatch to 9.6 where bug was introducedReported-by: David SteeleAuthors: Michael Paquier, David SteeleReviewed-by: Anastasia Lubennikovahttps://commitfest.postgresql.org/13/1068/1 parent457a444 commit7887453
File tree
3 files changed
+52
-16
lines changed- src
- backend/access/transam
- include/access
3 files changed
+52
-16
lines changedLines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
503 | 503 |
| |
504 | 504 |
| |
505 | 505 |
| |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
506 | 512 |
| |
507 | 513 |
| |
508 | 514 |
| |
| |||
10566 | 10572 |
| |
10567 | 10573 |
| |
10568 | 10574 |
| |
| 10575 | + | |
10569 | 10576 |
| |
10570 | 10577 |
| |
10571 | 10578 |
| |
10572 | 10579 |
| |
10573 | 10580 |
| |
10574 | 10581 |
| |
| 10582 | + | |
10575 | 10583 |
| |
| 10584 | + | |
| 10585 | + | |
10576 | 10586 |
| |
10577 | 10587 |
| |
10578 | 10588 |
| |
| |||
10627 | 10637 |
| |
10628 | 10638 |
| |
10629 | 10639 |
| |
| 10640 | + | |
| 10641 | + | |
| 10642 | + | |
| 10643 | + | |
| 10644 | + | |
| 10645 | + | |
| 10646 | + | |
| 10647 | + | |
| 10648 | + | |
10630 | 10649 |
| |
10631 | 10650 |
| |
10632 | 10651 |
| |
| |||
10794 | 10813 |
| |
10795 | 10814 |
| |
10796 | 10815 |
| |
| 10816 | + | |
| 10817 | + | |
| 10818 | + | |
10797 | 10819 |
| |
10798 | 10820 |
| |
10799 | 10821 |
| |
|
Lines changed: 10 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
45 |
| - | |
46 |
| - | |
47 | 45 |
| |
48 | 46 |
| |
49 | 47 |
| |
| |||
78 | 76 |
| |
79 | 77 |
| |
80 | 78 |
| |
| 79 | + | |
81 | 80 |
| |
82 | 81 |
| |
83 | 82 |
| |
84 |
| - | |
| 83 | + | |
85 | 84 |
| |
86 | 85 |
| |
87 | 86 |
| |
| |||
96 | 95 |
| |
97 | 96 |
| |
98 | 97 |
| |
99 |
| - | |
100 | 98 |
| |
101 | 99 |
| |
102 | 100 |
| |
| |||
113 | 111 |
| |
114 | 112 |
| |
115 | 113 |
| |
116 |
| - | |
117 | 114 |
| |
118 | 115 |
| |
119 | 116 |
| |
| |||
147 | 144 |
| |
148 | 145 |
| |
149 | 146 |
| |
| 147 | + | |
150 | 148 |
| |
151 |
| - | |
| 149 | + | |
152 | 150 |
| |
153 | 151 |
| |
154 | 152 |
| |
155 | 153 |
| |
156 | 154 |
| |
157 | 155 |
| |
158 | 156 |
| |
159 |
| - | |
160 |
| - | |
161 |
| - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
162 | 160 |
| |
163 | 161 |
| |
164 | 162 |
| |
165 |
| - | |
166 |
| - | |
167 | 163 |
| |
168 | 164 |
| |
169 | 165 |
| |
| |||
199 | 195 |
| |
200 | 196 |
| |
201 | 197 |
| |
| 198 | + | |
202 | 199 |
| |
203 | 200 |
| |
204 | 201 |
| |
| |||
230 | 227 |
| |
231 | 228 |
| |
232 | 229 |
| |
233 |
| - | |
| 230 | + | |
234 | 231 |
| |
235 | 232 |
| |
236 | 233 |
| |
| |||
241 | 238 |
| |
242 | 239 |
| |
243 | 240 |
| |
244 |
| - | |
245 | 241 |
| |
246 | 242 |
| |
247 | 243 |
| |
248 | 244 |
| |
249 | 245 |
| |
250 | 246 |
| |
251 |
| - | |
| 247 | + | |
252 | 248 |
| |
253 | 249 |
| |
254 | 250 |
| |
| |||
259 | 255 |
| |
260 | 256 |
| |
261 | 257 |
| |
262 |
| - | |
263 | 258 |
| |
264 | 259 |
| |
265 | 260 |
| |
|
Lines changed: 20 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
288 | 288 |
| |
289 | 289 |
| |
290 | 290 |
| |
291 |
| - | |
| 291 | + | |
292 | 292 |
| |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
293 | 311 |
| |
294 | 312 |
| |
295 | 313 |
| |
296 | 314 |
| |
297 | 315 |
| |
298 | 316 |
| |
299 | 317 |
| |
| 318 | + | |
300 | 319 |
| |
301 | 320 |
| |
302 | 321 |
| |
|
0 commit comments
Comments
(0)