Commit 74659e55 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-16268 : sporadic checksum mismatch when opening system tablespace in backup


Attempt to fix by retrying srv_sys_space.open_or_create() if it reports
corruption.
parent 560df479
......@@ -3362,8 +3362,15 @@ xb_load_tablespaces()
return(DB_ERROR);
}
err = srv_sys_space.open_or_create(false, false, &sum_of_new_sizes,
&flush_lsn);
for (int i= 0; i < 10; i++) {
err = srv_sys_space.open_or_create(false, false, &sum_of_new_sizes,
&flush_lsn);
if (err == DB_PAGE_CORRUPTED || err == DB_CORRUPTION) {
my_sleep(1000);
}
else
break;
}
if (err != DB_SUCCESS) {
msg("mariabackup: Could not open data files.\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment