Commit 8328a15
committed
Fix recently added incorrect assertion
Commit df3737a added an incorrect assertion about the preconditions
for invoking the backup cleanup callback: it misfires at session end in
case a backup completes successfully. Fix it, using coding from Michaël
Paquier. 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 parent 2e0d80c commit 8328a15
File tree
2 files changed
+16
-3
lines changed- src
- backend/access/transam
- test/recovery/t
2 files changed
+16
-3
lines changed| 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 | | |
| |||
| 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