From bb3fae1fa6a54ca78f4950d66f8da02bdd354a1b Mon Sep 17 00:00:00 2001 From: Marek Miklewicz Date: Sun, 5 Jul 2026 19:21:08 +0200 Subject: [PATCH] polish: add trap cleanup_restore_rollback to match sibling restore scripts Final whole-branch review noted alt_mysql_native_backup_restore.sh was the only one of three consumers of the shared rollback helpers without this trap, leaving a stale rollback temp file on signal/die(). --- scripts/da-integration/alt_mysql_native_backup_restore.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/da-integration/alt_mysql_native_backup_restore.sh b/scripts/da-integration/alt_mysql_native_backup_restore.sh index 5dfde57..088419b 100755 --- a/scripts/da-integration/alt_mysql_native_backup_restore.sh +++ b/scripts/da-integration/alt_mysql_native_backup_restore.sh @@ -309,6 +309,7 @@ if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then [ -r "$COMMON_FILE" ] || die "missing helper: $COMMON_FILE" # shellcheck source=../setup/mysql_common.sh source "$COMMON_FILE" + trap cleanup_restore_rollback INT TERM EXIT mysql_load_plugin_settings_file "$SETTINGS_FILE" main "$@" fi