Skip to content

Commit bab543f

Browse files
authored
CI: reset GTID before restoring mysql db (#3988)
1 parent c31d4b0 commit bab543f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/lib/db/instance-mysql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ restore() {
6565
backup_file="${1?missing file to restore database from}"
6666
[[ -f "${backup_file}" ]] || die "Backup file ${backup_file} doesn't exist"
6767

68+
# clear global transaction identifiers before restore
69+
exec_sql "RESET BINARY LOGS AND GTIDS;"
70+
6871
silence_password_warning \
6972
mysql \
7073
"--host=${MYSQL_HOST}" \

0 commit comments

Comments
 (0)