Skip to content

Commit

Permalink
Merge 10.5 into 10.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Aug 24, 2023
2 parents 4e7d2e7 + aeb8eae commit eda75ca
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions mysql-test/suite/innodb/r/read_only_recovery.result
Expand Up @@ -36,6 +36,7 @@ SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
SELECT * FROM t;
a
3
SET GLOBAL innodb_max_purge_lag_wait=0;
# restart
SELECT * FROM t;
a
Expand Down
1 change: 1 addition & 0 deletions mysql-test/suite/innodb/t/read_only_recovery.test
Expand Up @@ -38,6 +38,7 @@ UPDATE t SET a=3 WHERE a=1;
SELECT * FROM t;
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
SELECT * FROM t;
SET GLOBAL innodb_max_purge_lag_wait=0;
--let $restart_parameters=
--source include/restart_mysqld.inc
SELECT * FROM t;
Expand Down
2 changes: 2 additions & 0 deletions storage/innobase/handler/ha_innodb.cc
Expand Up @@ -220,6 +220,8 @@ static uint innodb_max_purge_lag_wait;
static void innodb_max_purge_lag_wait_update(THD *thd, st_mysql_sys_var *,
void *, const void *limit)
{
if (high_level_read_only)
return;
const uint l= *static_cast<const uint*>(limit);
if (!trx_sys.history_exceeds(l))
return;
Expand Down
2 changes: 0 additions & 2 deletions storage/innobase/srv/srv0srv.cc
Expand Up @@ -1297,8 +1297,6 @@ static tpool::timer *purge_coordinator_timer;
/** Wake up the purge threads if there is work to do. */
void srv_wake_purge_thread_if_not_active()
{
ut_ad(!srv_read_only_mode);

if (purge_sys.enabled() && !purge_sys.paused() &&
(srv_undo_log_truncate || trx_sys.history_exists()) &&
++purge_state.m_running == 1)
Expand Down

0 comments on commit eda75ca

Please sign in to comment.