summaryrefslogtreecommitdiff
path: root/extra
Commit message (Collapse)AuthorAgeFilesLines
* Merge 10.10 into 10.11Marko Mäkelä2022-11-211-1/+1
|\
| * Merge 10.9 into 10.10Marko Mäkelä2022-11-212-5/+1
| |\
| | * Merge 10.8 into 10.9Marko Mäkelä2022-11-101-4/+0
| | |\
| | | * Merge 10.7 into 10.8Marko Mäkelä2022-11-091-4/+0
| | | |\
| | | | * Merge 10.6 into 10.7Marko Mäkelä2022-11-091-4/+0
| | | | |\
| | | | | * Merge 10.5 into 10.6Marko Mäkelä2022-11-081-4/+0
| | | | | |\
| | | | | | * Merge 10.4 into 10.5Marko Mäkelä2022-11-081-4/+0
| | | | | | |\
| | | | | | | * Merge 10.3 into 10.4Marko Mäkelä2022-11-081-4/+0
| | | | | | | |\
| | | | | | | | * MDEV-27121 mariabackup incompatible with disabled dedicated undo log ↵Thirunarayanan Balathandayuthapani2022-11-071-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tablespaces - mariabackup fails to assign srv_undo_space_id_start when the dedicated undo tablespaces are disabled
| | * | | | | | | Merge branch '10.9' into bb-10.9-releaseOleksandr Byelkin2022-11-071-1/+1
| | |\ \ \ \ \ \ \ | | | |/ / / / / / | | |/| | | | | |
| | | * | | | | | MDEV-27142 - postfixVladislav Vaintroub2022-11-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix build failure in comp_err, if git is configured with default, platform-specific EOL. The error happens because comp_err is not prepared to handle extraneous CR characters from errmgs-utf8.txt. Use fopen in text mode to fix.
* | | | | | | | | Merge branch '10.10' into 10.11Oleksandr Byelkin2022-11-021-5/+10
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / /
| * | | | | | | | Merge branch '10.9' into 10.10Oleksandr Byelkin2022-11-011-5/+10
| |\ \ \ \ \ \ \ \ | | |/ / / / / / /
| | * | | | | | | MDEV-28772 Mariabackup locks database for minutes since 10.8.3Marko Mäkelä2022-10-171-5/+10
| | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mariadb-backup: Add the Boolean option --innodb-log-file-buffering (default ON) to control whether the server's ib_logfile0 should be accessed via the file system cache during --backup. We may be retrying reads of the last log block very frequently, which may cause I/O stalls when the file system cache is being bypassed. This addresses a regression that was introduced in commit 4c0cd953abffea841271f3a5cce1712d5e6c5633 (MDEV-28766). On some affected systems, it may make sense to additionally SET GLOBAL innodb_log_file_buffering=OFF on the server for the duration of making a backup.
* | | | | | | | MDEV-19229 Allow innodb_undo_tablespaces to be changed after database creationThirunarayanan Balathandayuthapani2022-10-252-91/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | trx_sys_t::undo_log_nonempty: Set to true if there are undo logs to rollback and purge. The algorithm for re-creating the undo tablespace when trx_sys_t::undo_log_nonempty is disabled: 1) trx_sys_t::reset_page(): Reset the TRX_SYS page and assign all rollback segment slots from 1..127 to FIL_NULL 2) Free the rollback segment header page of system tablespace for the slots 1..127 3) Update the binlog and WSREP information in system tablespace rollback segment header Step (1), (2) and Step (3) should happen atomically within a single mini-transaction. 4) srv_undo_delete_old_tablespaces(): Delete the old undo tablespaces present in the undo log directory 5) Make checkpoint to get rid of old undo log tablespaces redo logs 6) Assign new start space id for the undo log tablespaces 7) Re-create the specified undo log tablespaces. InnoDB uses same mtr for this one and step (6) 8) Make checkpoint again, so that server or mariabackup can read the undo log tablespace page0 before applying the redo logs srv_undo_tablespaces_reinit(): Recreate the undo log tablespaces. It does reset trx_sys page, delete the old undo tablespaces, update the binlog offset, write set replication checkpoint in system rollback segment page trx_rseg_update_binlog_offset(): Added 2 new parameters to pass binlog file name and binlog offset trx_rseg_array_init(): Return error if the rollback segment slot points to non-existent tablespace srv_undo_tablespaces_init(): Added new parameter mtr to initialize all undo tablespaces trx_assign_rseg_low(): Allow the transaction to use the rollback segment slots(1..127) even if InnoDB failed to change to the requested innodb_undo_tablespaces=0 srv_start(): Override the user specified value of innodb_undo_tablespaces variable with already existing actual undo tablespaces wf_incremental_process(): Detects whether TRX_SYS page has been modified since last backup. If it is then incremental backup fails and throws the information about taking full backup again xb_assign_undo_space_start(): Removed the function. Because undo001 has first undo space id value in page0 Added test case to test the scenario during startup and mariabackup incremental process too. Reviewed-by : Marko Mäkelä Tested-by : Matthias Leich
* | | | | | | | Merge branch 'bb-10.10-release' into bb-10.11-releaseOleksandr Byelkin2022-10-171-0/+0
|\ \ \ \ \ \ \ \ | |/ / / / / / /
| * | | | | | | Merge branch '10.9' into 10.10Oleksandr Byelkin2022-10-171-0/+0
| |\ \ \ \ \ \ \ | | |/ / / / / /
| | * | | | | | Merge branch '10.7' into 10.8Oleksandr Byelkin2022-10-171-0/+0
| | |\ \ \ \ \ \ | | | |/ / / / /
| | | * | | | | Merge branch '10.6' into 10.7Oleksandr Byelkin2022-10-161-0/+0
| | | |\ \ \ \ \ | | | | |/ / / /
| | | | * | | | Merge branch '10.5' into 10.6Oleksandr Byelkin2022-10-151-0/+0
| | | | |\ \ \ \ | | | | | |/ / /
| | | | | * | | Merge branch '10.4' into 10.5Oleksandr Byelkin2022-10-141-0/+0
| | | | | |\ \ \ | | | | | | |/ /
| | | | | | * | v5.5.1-stableOleksandr Byelkin2022-10-141-0/+0
| | | | | | | |
| | | | | | * | MDEV-29613 Improve WITH_DBUG_TRACE=OFFMarko Mäkelä2022-09-231-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 28325b08633372cc343dfcbc41fe252020cf6e6e a compile-time option was introduced to disable the macros DBUG_ENTER and DBUG_RETURN or DBUG_VOID_RETURN. The parameter name WITH_DBUG_TRACE would hint that it also covers DBUG_PRINT statements. Let us do that: WITH_DBUG_TRACE=OFF shall disable DBUG_PRINT() as well. A few InnoDB recovery tests used to check that some output from DBUG_PRINT("ib_log", ...) is present. We can live without those checks. Reviewed by: Vladislav Vaintroub
* | | | | | | | Merge 10.10 into 10.11Marko Mäkelä2022-09-212-2/+3
|\ \ \ \ \ \ \ \ | |/ / / / / / /
| * | | | | | | Merge 10.9 into 10.10Marko Mäkelä2022-09-212-2/+3
| |\ \ \ \ \ \ \ | | |/ / / / / /
| | * | | | | | Merge 10.7 into 10.8Marko Mäkelä2022-09-212-2/+3
| | |\ \ \ \ \ \ | | | |/ / / / /
| | | * | | | | Merge 10.6 into 10.7Marko Mäkelä2022-09-212-2/+3
| | | |\ \ \ \ \ | | | | |/ / / /
| | | | * | | | Merge 10.5 into 10.6Marko Mäkelä2022-09-202-2/+3
| | | | |\ \ \ \ | | | | | |/ / /
| | | | | * | | Merge 10.4 into 10.5Marko Mäkelä2022-09-201-1/+1
| | | | | |\ \ \ | | | | | | |/ /
| | | | | | * | Merge 10.3 into 10.4Marko Mäkelä2022-09-201-1/+1
| | | | | | |\ \ | | | | | | | |/
| | | | | | | * InnoDB cleanup: Replace UNIV_LINUX, UNIV_SOLARIS, UNIV_AIXMarko Mäkelä2022-09-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let us use the normal platform-specific preprocessor symbols __linux__, __sun__, _AIX instead of some homebrew ones. The preprocessor symbol UNIV_HPUX must have lost its meaning by f6deb00a56b2e87287d606aba3bcd71290d876ae (note: the symbol UNIV_HPUX10 is being checked for, but only UNIV_HPUX is defined).
| | | | | * | | Merge 10.4 into 10.5Daniel Black2022-09-191-1/+2
| | | | | |\ \ \ | | | | | | |/ /
| | | | | | * | MDEV-18589 Assertion on info.page_size failed in xb_delta_open_matching_spaceMarko Mäkelä2022-09-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | xb_read_delta_metadata(): For ROW_FORMAT=COMPRESSED tables, initialize the info.zip_size with the physical page size and let info.page_size remain the logical page size, like xb_delta_open_matching_space() expects it to be ever since commit 0a1c3477bf359c55be3e11ec6502bc7b5bb87f29 (MDEV-18493).
* | | | | | | | MDEV-19246 Change database and table used for Mariabackup's historyAlexander Barkov2022-09-124-13/+13
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changing the mariabackup history table from PERCONA_SCHEMA.xtrabackup_history to mysql.mariabackup_history. Additionally, extending xb_history.test for better coverage: - Recording the fact that the history table is created during "mariabackup --history" invocation when it does not exist. - Recording the history table structure (adding SHOW CREATE TABLE) - Recording how --history vs --history=foo affect the "name" column of the history table. - Recording the fact that two consequent executions of "mariabackup --history[=foo]" insert into the history table incrementally, without truncating it on every execution.
* | | | | | | Merge 10.9 into 10.10Marko Mäkelä2022-08-302-11/+17
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Merge 10.7 into 10.8Marko Mäkelä2022-08-302-11/+17
| |\ \ \ \ \ \ | | |/ / / / /
| | * | | | | Merge 10.6 into 10.7Marko Mäkelä2022-08-302-11/+17
| | |\ \ \ \ \ | | | |/ / / /
| | | * | | | Merge 10.5 into 10.6Marko Mäkelä2022-08-302-11/+17
| | | |\ \ \ \ | | | | |/ / /
| | | | * | | mariabackup: remove MySQL wordingDaniel Black2022-08-261-6/+6
| | | | | | |
| | | | * | | MDEV-23607 MariaBackup - align required GRANTS to cmd optionsDaniel Black2022-08-261-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the 10.5 split of the privileges, the required GRANTs for various mariabackup operations has changed. In the addition of tests, a number of mappings where incorrect: The option --lock-ddl-per-table didn't require connection admin. The option --safe-slave-backup requires SLAVE MONITOR even without the --no-lock option.
* | | | | | | Merge 10.9 into 10.10Marko Mäkelä2022-08-292-10/+45
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Merge 10.7 into 10.8Marko Mäkelä2022-08-242-10/+45
| |\ \ \ \ \ \ | | |/ / / / /
| | * | | | | Merge 10.6 into 10.7Marko Mäkelä2022-08-242-10/+45
| | |\ \ \ \ \ | | | |/ / / /
| | | * | | | Merge 10.5 into 10.6Marko Mäkelä2022-08-221-8/+43
| | | |\ \ \ \ | | | | |/ / /
| | | | * | | Merge 10.4 into 10.5Marko Mäkelä2022-08-221-8/+43
| | | | |\ \ \ | | | | | |/ /
| | | | | * | Merge 10.3 into 10.4Marko Mäkelä2022-08-221-8/+43
| | | | | |\ \ | | | | | | |/
| | | | | | * MDEV-29043 mariabackup --compress hangsMarko Mäkelä2022-08-191-8/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Even though commit b817afaa1c148437e1016d1981f138d0c46ccbc8 passed the test mariabackup.compress_qpress, that test turned out to be too small to reveal one more problem that had previously been prevented by the existence of ctrl_mutex. I did not realize that there can be multiple concurrent callers to compress_write(). One of them is the log copying thread; further callers are data file copying threads (default: --parallel=1). By default, there is only one compression worker thread (--compress-threads=1). compress_write(): Fix a race condition between threads that would use the same worker thread object. Make thd->data_avail contain the thread identifier of the submitter, and add thd->avail_cond to notify other compress_write() threads that are waiting for a slot.
| | | * | | | MDEV-21452 fixup: Avoid an unnecessary mutex operationMarko Mäkelä2022-08-191-2/+2
| | | | | | |
| * | | | | | Merge branch '10.7' into 10.8Oleksandr Byelkin2022-08-0910-343/+81
| |\ \ \ \ \ \ | | |/ / / / /
* | | | | | | Merge branch '10.9' into 10.10Oleksandr Byelkin2022-08-0910-343/+81
|\ \ \ \ \ \ \