mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
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:
parent
0e6a5786d4
commit
218d20ffe3
1 changed files with 5 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue