summaryrefslogtreecommitdiff
path: root/sql/backup.cc
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-23080: desync and pause node on BACKUP STAGE BLOCK_DDLLeandro Pacheco2021-07-271-0/+24
| | | | | | | | make BACKUP STAGE behave as FTWRL, desyncing and pausing the node to prevent BF threads (appliers) from interfering with blocking stages. This is needed because BF threads don't respect BACKUP MDL locks. Reviewed-by: Jan Lindström <jan.lindstrom@mariadb.com>
* MDEV-20945: BACKUP UNLOCK + FTWRL assertion failureRinat Ibragimov2020-10-221-0/+6
| | | | | | | | | | | | | | MDEV-20945: BACKUP UNLOCK + FTWRL assertion failure | SIGSEGV in I_P_List from MDL_context::release_lock on INSERT w/ BACKUP LOCK (on optimized builds) | Assertion `ticket->m_duration == MDL_EXPLICIT' failed BACKUP LOCK behavior is modified so it won't be used wrong: - BACKUP LOCK should commit any active transactions. - BACKUP LOCK should not be allowed in stored procedures. - When BACKUP LOCK is active, don't allow any DDL's for that connection. - FTWRL is forbidden on the same connection while BACKUP LOCK is active. Reviewed-by: monty@mariadb.com
* Merge 10.3 into 10.4, except MDEV-22543Marko Mäkelä2020-08-131-3/+2
| | | | Also, fix GCC -Og -Wmaybe-uninitialized in run_backup_stage()
* Fix that BACKUP STAGE BLOCK_COMMIT flushes binary logMonty2019-11-011-0/+8
|
* MDEV-19585 Assertion with S3 table and flush_tablesMonty2019-06-261-1/+6
| | | | | | | | | The problem was two fault: - flush_tables() wrongly gave errors when failing to open read only tables - backup_block_ddl() didn't properly ignores errors from flush_tables() The test case for this will be pushed in 10.5 as the test involves S3 tables.
* Added support for BACKUP LOCK / BACKUP UNLOCKMichael Widenius2019-01-141-0/+29
|
* Added syntax and implementation for BACKUP STAGE'sMonty2018-12-091-0/+356
Part of MDEV-5336 Implement LOCK FOR BACKUP - Changed check of Global_only_lock to also include BACKUP lock. - We store latest MDL_BACKUP_DDL lock in thd->mdl_backup_ticket to be able to downgrade lock during copy_data_between_tables()