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
607de9c7
Commit
607de9c7
authored
3 years ago
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.5 into 10.6
parents
a8379e53
f1acd9f1
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
50 additions
and
9 deletions
+50
-9
mysql-test/suite/galera/disabled.def
mysql-test/suite/galera/disabled.def
+0
-1
mysql-test/suite/galera_3nodes_sr/r/MDEV-26707.result
mysql-test/suite/galera_3nodes_sr/r/MDEV-26707.result
+22
-3
mysql-test/suite/galera_3nodes_sr/t/MDEV-26707.test
mysql-test/suite/galera_3nodes_sr/t/MDEV-26707.test
+6
-0
sql/wsrep_trans_observer.h
sql/wsrep_trans_observer.h
+8
-1
storage/innobase/buf/buf0flu.cc
storage/innobase/buf/buf0flu.cc
+1
-1
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+12
-2
storage/innobase/include/buf0buf.h
storage/innobase/include/buf0buf.h
+1
-1
No files found.
mysql-test/suite/galera/disabled.def
View file @
607de9c7
...
@@ -38,7 +38,6 @@ galera_var_dirty_reads : MDEV-25615 Galera test failure on galera_var_dirty_read
...
@@ -38,7 +38,6 @@ galera_var_dirty_reads : MDEV-25615 Galera test failure on galera_var_dirty_read
galera_var_ignore_apply_errors : MDEV-26770 galera_var_ignore_apply_errors fails Server did not transition to READY state
galera_var_ignore_apply_errors : MDEV-26770 galera_var_ignore_apply_errors fails Server did not transition to READY state
galera_var_node_address : MDEV-20485 Galera test failure
galera_var_node_address : MDEV-20485 Galera test failure
galera_var_notify_cmd : MDEV-21905 Galera test galera_var_notify_cmd causes hang
galera_var_notify_cmd : MDEV-21905 Galera test galera_var_notify_cmd causes hang
galera_var_replicate_myisam_on : MDEV-24062 Galera test failure on galera_var_replicate_myisam_on
galera_var_retry_autocommit: MDEV-18181 Galera test failure on galera.galera_var_retry_autocommit
galera_var_retry_autocommit: MDEV-18181 Galera test failure on galera.galera_var_retry_autocommit
galera_wsrep_provider_unset_set: wsrep_provider is read-only for security reasons
galera_wsrep_provider_unset_set: wsrep_provider is read-only for security reasons
mysql-wsrep#198 : MDEV-24446: galera.mysql-wsrep#198 MTR failed: query 'reap' failed: 2000: Unknown MySQL error
mysql-wsrep#198 : MDEV-24446: galera.mysql-wsrep#198 MTR failed: query 'reap' failed: 2000: Unknown MySQL error
...
...
This diff is collapsed.
Click to expand it.
mysql-test/suite/galera_3nodes_sr/r/MDEV-26707.result
View file @
607de9c7
...
@@ -71,16 +71,35 @@ connection node_3a;
...
@@ -71,16 +71,35 @@ connection node_3a;
SET SESSION wsrep_sync_wait = 0;
SET SESSION wsrep_sync_wait = 0;
SET SESSION wsrep_sync_wait = DEFAULT;
SET SESSION wsrep_sync_wait = DEFAULT;
connection node_1a;
connection node_1a;
Timeout in wait_condition.inc for SELECT COUNT(*) = 0 FROM mysql.wsrep_streaming_log
Id User Host db Command Time State Info Progress
1 system user NULL Sleep 66 wsrep aborter idle NULL 0.000
2 system user NULL Sleep 66 closing tables NULL 0.000
10 root localhost test Sleep 58 NULL 0.000
11 root localhost:52722 test Sleep 56 NULL 0.000
12 root localhost:52724 test Query 0 starting show full processlist 0.000
SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
EXPECT_0
EXPECT_0
0
1
connection node_2a;
connection node_2a;
Timeout in wait_condition.inc for SELECT COUNT(*) = 0 FROM mysql.wsrep_streaming_log
Id User Host db Command Time State Info Progress
1 system user NULL Sleep 96 wsrep aborter idle NULL 0.000
2 system user NULL Sleep 87 closing tables NULL 0.000
10 root localhost:37222 test Sleep 64 NULL 0.000
11 root localhost:37228 test Query 0 starting show full processlist 0.000
SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
EXPECT_0
EXPECT_0
0
1
connection node_3a;
connection node_3a;
Timeout in wait_condition.inc for SELECT COUNT(*) = 0 FROM mysql.wsrep_streaming_log
Id User Host db Command Time State Info Progress
1 system user NULL Sleep 122 wsrep aborter idle NULL 0.000
2 system user NULL Sleep 117 closing tables NULL 0.000
10 root localhost:60992 test Sleep 117 NULL 0.000
11 root localhost:60994 test Query 0 starting show full processlist 0.000
SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
EXPECT_0
EXPECT_0
0
1
connection node_1;
connection node_1;
DROP TABLE t1;
DROP TABLE t1;
This diff is collapsed.
Click to expand it.
mysql-test/suite/galera_3nodes_sr/t/MDEV-26707.test
View file @
607de9c7
...
@@ -151,10 +151,16 @@ SET SESSION wsrep_sync_wait = DEFAULT;
...
@@ -151,10 +151,16 @@ SET SESSION wsrep_sync_wait = DEFAULT;
# Expect no entries in wsrep_streaming_log
# Expect no entries in wsrep_streaming_log
#
#
--
connection
node_1a
--
connection
node_1a
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
0
FROM
mysql
.
wsrep_streaming_log
--
source
include
/
wait_condition
.
inc
SELECT
COUNT
(
*
)
AS
EXPECT_0
FROM
mysql
.
wsrep_streaming_log
;
SELECT
COUNT
(
*
)
AS
EXPECT_0
FROM
mysql
.
wsrep_streaming_log
;
--
connection
node_2a
--
connection
node_2a
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
0
FROM
mysql
.
wsrep_streaming_log
--
source
include
/
wait_condition
.
inc
SELECT
COUNT
(
*
)
AS
EXPECT_0
FROM
mysql
.
wsrep_streaming_log
;
SELECT
COUNT
(
*
)
AS
EXPECT_0
FROM
mysql
.
wsrep_streaming_log
;
--
connection
node_3a
--
connection
node_3a
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
0
FROM
mysql
.
wsrep_streaming_log
--
source
include
/
wait_condition
.
inc
SELECT
COUNT
(
*
)
AS
EXPECT_0
FROM
mysql
.
wsrep_streaming_log
;
SELECT
COUNT
(
*
)
AS
EXPECT_0
FROM
mysql
.
wsrep_streaming_log
;
...
...
This diff is collapsed.
Click to expand it.
sql/wsrep_trans_observer.h
View file @
607de9c7
...
@@ -426,7 +426,14 @@ static inline
...
@@ -426,7 +426,14 @@ static inline
int
wsrep_after_statement
(
THD
*
thd
)
int
wsrep_after_statement
(
THD
*
thd
)
{
{
DBUG_ENTER
(
"wsrep_after_statement"
);
DBUG_ENTER
(
"wsrep_after_statement"
);
DBUG_RETURN
(
thd
->
wsrep_cs
().
state
()
!=
wsrep
::
client_state
::
s_none
&&
WSREP_DEBUG
(
"wsrep_after_statement for %lu client_state %s "
" client_mode %s trans_state %s"
,
thd_get_thread_id
(
thd
),
wsrep
::
to_c_string
(
thd
->
wsrep_cs
().
state
()),
wsrep
::
to_c_string
(
thd
->
wsrep_cs
().
mode
()),
wsrep
::
to_c_string
(
thd
->
wsrep_cs
().
transaction
().
state
()));
DBUG_RETURN
((
thd
->
wsrep_cs
().
state
()
!=
wsrep
::
client_state
::
s_none
&&
thd
->
wsrep_cs
().
mode
()
==
Wsrep_client_state
::
m_local
)
&&
!
thd
->
internal_transaction
()
?
!
thd
->
internal_transaction
()
?
thd
->
wsrep_cs
().
after_statement
()
:
0
);
thd
->
wsrep_cs
().
after_statement
()
:
0
);
}
}
...
...
This diff is collapsed.
Click to expand it.
storage/innobase/buf/buf0flu.cc
View file @
607de9c7
...
@@ -126,7 +126,7 @@ static void buf_flush_validate_skip()
...
@@ -126,7 +126,7 @@ static void buf_flush_validate_skip()
#endif
/* UNIV_DEBUG */
#endif
/* UNIV_DEBUG */
/** Wake up the page cleaner if needed */
/** Wake up the page cleaner if needed */
inline
void
buf_pool_t
::
page_cleaner_wakeup
()
void
buf_pool_t
::
page_cleaner_wakeup
()
{
{
if
(
!
page_cleaner_idle
())
if
(
!
page_cleaner_idle
())
return
;
return
;
...
...
This diff is collapsed.
Click to expand it.
storage/innobase/handler/ha_innodb.cc
View file @
607de9c7
...
@@ -17148,7 +17148,12 @@ innodb_max_dirty_pages_pct_update(
...
@@ -17148,7 +17148,12 @@ innodb_max_dirty_pages_pct_update(
}
}
srv_max_buf_pool_modified_pct
=
in_val
;
srv_max_buf_pool_modified_pct
=
in_val
;
pthread_cond_signal
(
&
buf_pool
.
do_flush_list
);
mysql_mutex_unlock
(
&
LOCK_global_system_variables
);
mysql_mutex_lock
(
&
buf_pool
.
flush_list_mutex
);
buf_pool
.
page_cleaner_wakeup
();
mysql_mutex_unlock
(
&
buf_pool
.
flush_list_mutex
);
mysql_mutex_lock
(
&
LOCK_global_system_variables
);
}
}
/****************************************************************//**
/****************************************************************//**
...
@@ -17179,7 +17184,12 @@ innodb_max_dirty_pages_pct_lwm_update(
...
@@ -17179,7 +17184,12 @@ innodb_max_dirty_pages_pct_lwm_update(
}
}
srv_max_dirty_pages_pct_lwm
=
in_val
;
srv_max_dirty_pages_pct_lwm
=
in_val
;
pthread_cond_signal
(
&
buf_pool
.
do_flush_list
);
mysql_mutex_unlock
(
&
LOCK_global_system_variables
);
mysql_mutex_lock
(
&
buf_pool
.
flush_list_mutex
);
buf_pool
.
page_cleaner_wakeup
();
mysql_mutex_unlock
(
&
buf_pool
.
flush_list_mutex
);
mysql_mutex_lock
(
&
LOCK_global_system_variables
);
}
}
/*************************************************************//**
/*************************************************************//**
...
...
This diff is collapsed.
Click to expand it.
storage/innobase/include/buf0buf.h
View file @
607de9c7
...
@@ -1845,7 +1845,7 @@ class buf_pool_t
...
@@ -1845,7 +1845,7 @@ class buf_pool_t
return
page_cleaner_is_idle
;
return
page_cleaner_is_idle
;
}
}
/** Wake up the page cleaner if needed */
/** Wake up the page cleaner if needed */
inline
void
page_cleaner_wakeup
();
void
page_cleaner_wakeup
();
/** Register whether an explicit wakeup of the page cleaner is needed */
/** Register whether an explicit wakeup of the page cleaner is needed */
void
page_cleaner_set_idle
(
bool
deep_sleep
)
void
page_cleaner_set_idle
(
bool
deep_sleep
)
...
...
This diff is collapsed.
Click to expand it.
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