Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
aeb8eae5
Commit
aeb8eae5
authored
Aug 24, 2023
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.4 into 10.5
parents
0d88365b
02878f12
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
4 deletions
+5
-4
mysql-test/suite/innodb/r/read_only_recovery.result
mysql-test/suite/innodb/r/read_only_recovery.result
+1
-0
mysql-test/suite/innodb/t/read_only_recovery.test
mysql-test/suite/innodb/t/read_only_recovery.test
+1
-0
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+2
-0
storage/innobase/srv/srv0srv.cc
storage/innobase/srv/srv0srv.cc
+0
-2
storage/innobase/trx/trx0trx.cc
storage/innobase/trx/trx0trx.cc
+1
-2
No files found.
mysql-test/suite/innodb/r/read_only_recovery.result
View file @
aeb8eae5
...
...
@@ -35,6 +35,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
...
...
mysql-test/suite/innodb/t/read_only_recovery.test
View file @
aeb8eae5
...
...
@@ -37,6 +37,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
;
...
...
storage/innobase/handler/ha_innodb.cc
View file @
aeb8eae5
...
...
@@ -223,6 +223,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
.
rseg_history_len
<=
l
)
return
;
...
...
storage/innobase/srv/srv0srv.cc
View file @
aeb8eae5
...
...
@@ -1348,8 +1348,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
.
rseg_history_len
)
&&
++
purge_state
.
m_running
==
1
)
...
...
storage/innobase/trx/trx0trx.cc
View file @
aeb8eae5
...
...
@@ -1422,7 +1422,6 @@ inline void trx_t::commit_in_memory(const mtr_t *mtr)
trx_mutex_exit
(
this
);
ut_a
(
error_state
==
DB_SUCCESS
);
if
(
!
srv_read_only_mode
)
srv_wake_purge_thread_if_not_active
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment