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
09b25f85
Commit
09b25f85
authored
Mar 01, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only allow SUPER user to modify wsrep_on
parent
7cec6857
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
mysql-test/suite/wsrep/r/variables.result
mysql-test/suite/wsrep/r/variables.result
+7
-0
mysql-test/suite/wsrep/t/variables.test
mysql-test/suite/wsrep/t/variables.test
+14
-0
sql/sys_vars.cc
sql/sys_vars.cc
+1
-1
No files found.
mysql-test/suite/wsrep/r/variables.result
View file @
09b25f85
...
...
@@ -73,6 +73,13 @@ Threads_connected 1
SHOW STATUS LIKE 'wsrep_thread_count';
Variable_name Value
wsrep_thread_count 11
set wsrep_on=0;
set wsrep_on=1;
create user test@localhost;
set auto_increment_increment=10;
set wsrep_on=0;
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
drop user test@localhost;
#
# MDEV#6411: Setting set @@global.wsrep_sst_auth=NULL causes crash
#
...
...
mysql-test/suite/wsrep/t/variables.test
View file @
09b25f85
...
...
@@ -68,6 +68,20 @@ sleep 3;
SHOW
STATUS
LIKE
'threads_connected'
;
SHOW
STATUS
LIKE
'wsrep_thread_count'
;
#
# privileges for wsrep_on
#
set
wsrep_on
=
0
;
set
wsrep_on
=
1
;
create
user
test
@
localhost
;
connect
con1
,
localhost
,
test
;
set
auto_increment_increment
=
10
;
--
error
ER_SPECIFIC_ACCESS_DENIED_ERROR
set
wsrep_on
=
0
;
disconnect
con1
;
connection
default
;
drop
user
test
@
localhost
;
--
echo
#
--
echo
# MDEV#6411: Setting set @@global.wsrep_sst_auth=NULL causes crash
--
echo
#
...
...
sql/sys_vars.cc
View file @
09b25f85
...
...
@@ -3854,7 +3854,7 @@ static Sys_var_mybool Sys_wsrep_on (
"wsrep_on"
,
"To enable wsrep replication "
,
SESSION_VAR
(
wsrep_on
),
CMD_LINE
(
OPT_ARG
),
DEFAULT
(
TRUE
),
NO_MUTEX_GUARD
,
NOT_IN_BINLOG
,
ON_CHECK
(
0
),
NO_MUTEX_GUARD
,
NOT_IN_BINLOG
,
ON_CHECK
(
check_has_super
),
ON_UPDATE
(
wsrep_on_update
));
static
Sys_var_charptr
Sys_wsrep_start_position
(
...
...
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