forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8328a15
committed
Fix recently added incorrect assertion
Commitdf3737a added an incorrect assertion about the preconditionsfor invoking the backup cleanup callback: it misfires at session end incase a backup completes successfully. Fix it, using coding from MichaëlPaquier. Also add some tests for the various cases.Reported by Kyotaro Horiguchi <horikyota.ntt@gmail.com>Discussion:https://postgr.es/m/20221021.161038.1277961198945653224.horikyota.ntt@gmail.com1 parent2e0d80c commit8328a15
File tree
2 files changed
+16
-3
lines changed- src
- backend/access/transam
- test/recovery/t
2 files changed
+16
-3
lines changedLines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8841 | 8841 |
| |
8842 | 8842 |
| |
8843 | 8843 |
| |
8844 |
| - | |
8845 |
| - | |
8846 |
| - | |
| 8844 | + | |
| 8845 | + | |
8847 | 8846 |
| |
8848 | 8847 |
| |
8849 | 8848 |
| |
|
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
248 | 248 |
| |
249 | 249 |
| |
250 | 250 |
| |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
251 | 265 |
|
0 commit comments
Comments
(0)