diff options
Diffstat (limited to 'sql/backup.cc')
-rw-r--r-- | sql/backup.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/backup.cc b/sql/backup.cc index 5976506cf92..40791e27416 100644 --- a/sql/backup.cc +++ b/sql/backup.cc @@ -161,7 +161,8 @@ static bool backup_start(THD *thd) DBUG_RETURN(1); } - mdl_request.init(MDL_key::BACKUP, "", "", MDL_BACKUP_START, MDL_EXPLICIT); + MDL_REQUEST_INIT(&mdl_request, MDL_key::BACKUP, "", "", MDL_BACKUP_START, + MDL_EXPLICIT); if (thd->mdl_context.acquire_lock(&mdl_request, thd->variables.lock_wait_timeout)) DBUG_RETURN(1); @@ -204,7 +205,7 @@ static bool backup_flush(THD *thd) Free unused tables and table shares so that mariabackup knows what is safe to copy */ - tc_purge(false); + tc_purge(); tdc_purge(true); DBUG_RETURN(0); |