mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-31355 innodb_undo_log_truncate=ON fails to wait for purge of enough transaction history
purge_sys_t::sees(): Wrapper for view.sees(). trx_purge_truncate_history(): Invoke purge_sys.sees() instead of comparing to head.trx_no, to determine if undo pages can be safely freed. The test innodb.cursor-restore-locking was adjusted by Vladislav Lesin, as was the the debug instrumentation in row_purge_del_mark(). Reviewed by: Vladislav Lesin
This commit is contained in:
@ -451,7 +451,9 @@ COMMIT;
|
||||
disconnect stop_purge;
|
||||
|
||||
connection default;
|
||||
let $wait_all_purged = 1;
|
||||
--source include/wait_all_purged.inc
|
||||
let $wait_all_purged = 0;
|
||||
SET DEBUG_SYNC='now SIGNAL s2';
|
||||
|
||||
connection dml;
|
||||
@ -459,6 +461,7 @@ reap;
|
||||
disconnect dml;
|
||||
|
||||
connection default;
|
||||
--source include/wait_all_purged.inc
|
||||
SET DEBUG_SYNC=RESET;
|
||||
DROP TABLE t1;
|
||||
|
||||
|
Reference in New Issue
Block a user