- Notifications
You must be signed in to change notification settings - Fork28
Commit8de6278
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 parent4ae0805 commit8de6278
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 | |
---|---|---|---|
| |||
482 | 482 |
| |
483 | 483 |
| |
484 | 484 |
| |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
485 | 491 |
| |
486 | 492 |
| |
487 | 493 |
| |
| |||
10249 | 10255 |
| |
10250 | 10256 |
| |
10251 | 10257 |
| |
| 10258 | + | |
10252 | 10259 |
| |
10253 | 10260 |
| |
10254 | 10261 |
| |
10255 | 10262 |
| |
10256 | 10263 |
| |
10257 | 10264 |
| |
| 10265 | + | |
10258 | 10266 |
| |
| 10267 | + | |
| 10268 | + | |
10259 | 10269 |
| |
10260 | 10270 |
| |
10261 | 10271 |
| |
| |||
10310 | 10320 |
| |
10311 | 10321 |
| |
10312 | 10322 |
| |
| 10323 | + | |
| 10324 | + | |
| 10325 | + | |
| 10326 | + | |
| 10327 | + | |
| 10328 | + | |
| 10329 | + | |
| 10330 | + | |
| 10331 | + | |
10313 | 10332 |
| |
10314 | 10333 |
| |
10315 | 10334 |
| |
| |||
10477 | 10496 |
| |
10478 | 10497 |
| |
10479 | 10498 |
| |
| 10499 | + | |
| 10500 | + | |
| 10501 | + | |
10480 | 10502 |
| |
10481 | 10503 |
| |
10482 | 10504 |
| |
|
Lines changed: 10 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 |
| - | |
47 |
| - | |
48 | 46 |
| |
49 | 47 |
| |
50 | 48 |
| |
| |||
79 | 77 |
| |
80 | 78 |
| |
81 | 79 |
| |
| 80 | + | |
82 | 81 |
| |
83 | 82 |
| |
84 | 83 |
| |
85 |
| - | |
| 84 | + | |
86 | 85 |
| |
87 | 86 |
| |
88 | 87 |
| |
| |||
97 | 96 |
| |
98 | 97 |
| |
99 | 98 |
| |
100 |
| - | |
101 | 99 |
| |
102 | 100 |
| |
103 | 101 |
| |
| |||
114 | 112 |
| |
115 | 113 |
| |
116 | 114 |
| |
117 |
| - | |
118 | 115 |
| |
119 | 116 |
| |
120 | 117 |
| |
| |||
148 | 145 |
| |
149 | 146 |
| |
150 | 147 |
| |
| 148 | + | |
151 | 149 |
| |
152 |
| - | |
| 150 | + | |
153 | 151 |
| |
154 | 152 |
| |
155 | 153 |
| |
156 | 154 |
| |
157 | 155 |
| |
158 | 156 |
| |
159 | 157 |
| |
160 |
| - | |
161 |
| - | |
162 |
| - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
163 | 161 |
| |
164 | 162 |
| |
165 | 163 |
| |
166 |
| - | |
167 |
| - | |
168 | 164 |
| |
169 | 165 |
| |
170 | 166 |
| |
| |||
192 | 188 |
| |
193 | 189 |
| |
194 | 190 |
| |
| 191 | + | |
195 | 192 |
| |
196 | 193 |
| |
197 | 194 |
| |
| |||
223 | 220 |
| |
224 | 221 |
| |
225 | 222 |
| |
226 |
| - | |
| 223 | + | |
227 | 224 |
| |
228 | 225 |
| |
229 | 226 |
| |
| |||
234 | 231 |
| |
235 | 232 |
| |
236 | 233 |
| |
237 |
| - | |
238 | 234 |
| |
239 | 235 |
| |
240 | 236 |
| |
241 | 237 |
| |
242 | 238 |
| |
243 | 239 |
| |
244 |
| - | |
| 240 | + | |
245 | 241 |
| |
246 | 242 |
| |
247 | 243 |
| |
| |||
252 | 248 |
| |
253 | 249 |
| |
254 | 250 |
| |
255 |
| - | |
256 | 251 |
| |
257 | 252 |
| |
258 | 253 |
| |
|
Lines changed: 20 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
274 | 274 |
| |
275 | 275 |
| |
276 | 276 |
| |
277 |
| - | |
| 277 | + | |
278 | 278 |
| |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
279 | 297 |
| |
280 | 298 |
| |
281 | 299 |
| |
282 | 300 |
| |
283 | 301 |
| |
284 | 302 |
| |
285 | 303 |
| |
| 304 | + | |
286 | 305 |
| |
287 | 306 |
| |
288 | 307 |
| |
|
0 commit comments
Comments
(0)