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
25aaa652
Commit
25aaa652
authored
Dec 31, 2014
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-6832: ER_LOCK_WAIT_TIMEOUT on SHOW STATUS
Synchronous read view should not be needed for SHOW commands.
parent
96e505e4
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
36 additions
and
4 deletions
+36
-4
mysql-test/suite/wsrep/r/mdev_6832.result
mysql-test/suite/wsrep/r/mdev_6832.result
+11
-0
mysql-test/suite/wsrep/r/variables.result
mysql-test/suite/wsrep/r/variables.result
+0
-1
mysql-test/suite/wsrep/t/mdev_6832.opt
mysql-test/suite/wsrep/t/mdev_6832.opt
+1
-0
mysql-test/suite/wsrep/t/mdev_6832.test
mysql-test/suite/wsrep/t/mdev_6832.test
+15
-0
mysql-test/suite/wsrep/t/variables.test
mysql-test/suite/wsrep/t/variables.test
+0
-1
sql/sql_parse.cc
sql/sql_parse.cc
+2
-2
sql/wsrep_var.cc
sql/wsrep_var.cc
+7
-0
No files found.
mysql-test/suite/wsrep/r/mdev_6832.result
0 → 100644
View file @
25aaa652
#
# MDEV-6832: ER_LOCK_WAIT_TIMEOUT on SHOW STATUS
#
SHOW STATUS LIKE 'wsrep_ready';
Variable_name Value
wsrep_ready ON
SHOW STATUS LIKE 'wsrep_ready';
Variable_name Value
wsrep_ready OFF
SET @@global.wsrep_cluster_address='gcomm://';
# End of test.
mysql-test/suite/wsrep/r/variables.result
View file @
25aaa652
...
...
@@ -141,7 +141,6 @@ SET GLOBAL wsrep_provider=none;
#
# MDEV#6206: wsrep_slave_threads subtracts from max_connections
#
call mtr.add_suppression("safe_mutex: Found wrong usage of mutex 'LOCK_wsrep_slave_threads' and 'LOCK_global_system_variables'");
call mtr.add_suppression("WSREP: Failed to get provider options");
SELECT @@global.wsrep_provider;
@@global.wsrep_provider
...
...
mysql-test/suite/wsrep/t/mdev_6832.opt
0 → 100644
View file @
25aaa652
--wsrep-provider=$WSREP_PROVIDER --wsrep-cluster-address=gcomm:// --wsrep_provider_options='base_port=$GALERA_BASE_PORT' --wsrep-on=1 --wsrep_causal_reads=ON
mysql-test/suite/wsrep/t/mdev_6832.test
0 → 100644
View file @
25aaa652
--
source
include
/
have_wsrep_provider
.
inc
--
source
include
/
have_binlog_format_row
.
inc
--
echo
#
--
echo
# MDEV-6832: ER_LOCK_WAIT_TIMEOUT on SHOW STATUS
--
echo
#
SHOW
STATUS
LIKE
'wsrep_ready'
;
--
disable_query_log
eval
SET
@@
global
.
wsrep_provider
=
'$WSREP_PROVIDER'
;
--
enable_query_log
SHOW
STATUS
LIKE
'wsrep_ready'
;
SET
@@
global
.
wsrep_cluster_address
=
'gcomm://'
;
--
echo
# End of test.
mysql-test/suite/wsrep/t/variables.test
View file @
25aaa652
...
...
@@ -78,7 +78,6 @@ SET GLOBAL wsrep_provider=none;
--
echo
#
--
echo
# MDEV#6206: wsrep_slave_threads subtracts from max_connections
--
echo
#
call
mtr
.
add_suppression
(
"safe_mutex: Found wrong usage of mutex 'LOCK_wsrep_slave_threads' and 'LOCK_global_system_variables'"
);
call
mtr
.
add_suppression
(
"WSREP: Failed to get provider options"
);
--
disable_query_log
...
...
sql/sql_parse.cc
View file @
25aaa652
...
...
@@ -2754,10 +2754,10 @@ mysql_execute_command(THD *thd)
#endif
case
SQLCOM_SHOW_STATUS
:
{
execute_show_status
(
thd
,
all_tables
);
#ifdef WITH_WSREP
if
(
WSREP_CLIENT
(
thd
)
&&
wsrep_sync_wait
(
thd
))
goto
error
;
wsrep_free_status
(
thd
)
;
#endif
/* WITH_WSREP */
execute_show_status
(
thd
,
all_tables
);
break
;
}
case
SQLCOM_SHOW_EXPLAIN
:
...
...
sql/wsrep_var.cc
View file @
25aaa652
...
...
@@ -365,7 +365,14 @@ bool wsrep_cluster_address_update (sys_var *self, THD* thd, enum_var_type type)
*/
mysql_mutex_unlock
(
&
LOCK_global_system_variables
);
wsrep_stop_replication
(
thd
);
/*
Unlock and lock LOCK_wsrep_slave_threads to maintain lock order & avoid
any potential deadlock.
*/
mysql_mutex_unlock
(
&
LOCK_wsrep_slave_threads
);
mysql_mutex_lock
(
&
LOCK_global_system_variables
);
mysql_mutex_lock
(
&
LOCK_wsrep_slave_threads
);
if
(
wsrep_start_replication
())
{
...
...
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