Fix recently added incorrect assertion Commit df3737a651f4 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 <[email protected]> Discussion: https://postgr.es/m/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/8328a15f8f95cad3fa99bbab551cade0a8403708 Modified Files -------------- src/backend/access/transam/xlog.c | 5 ++--- src/test/recovery/t/020_archive_status.pl | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-)
