MDEV-22398: mariabackup.innodb_xa_rollback fails on repeat

Flush LSN to system tablespace on innodb shutdown if XA is rolled back by
mariabackup.
This commit is contained in:
Vlad Lesin 2020-05-12 13:57:09 +03:00
parent 0e6a5786d4
commit 218d20ffe3

View File

@ -2777,11 +2777,15 @@ innodb_shutdown()
ut_ad(!srv_undo_sources);
switch (srv_operation) {
case SRV_OPERATION_RESTORE_ROLLBACK_XA:
if (dberr_t err = fil_write_flushed_lsn(log_sys->lsn))
ib::error() << "Writing flushed lsn " << log_sys->lsn
<< " failed; error=" << err;
/* fall through */
case SRV_OPERATION_BACKUP:
case SRV_OPERATION_RESTORE:
case SRV_OPERATION_RESTORE_DELTA:
case SRV_OPERATION_RESTORE_EXPORT:
case SRV_OPERATION_RESTORE_ROLLBACK_XA:
fil_close_all_files();
break;
case SRV_OPERATION_NORMAL: