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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
d06b5b6a
Commit
d06b5b6a
authored
Sep 26, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable wsrep by default.
fix wsrep not to crash when started disabled
parent
4b9bf9d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
sql/mysqld.cc
sql/mysqld.cc
+3
-1
sql/sys_vars.cc
sql/sys_vars.cc
+1
-1
No files found.
sql/mysqld.cc
View file @
d06b5b6a
...
...
@@ -5664,6 +5664,8 @@ int mysqld_main(int argc, char **argv)
wsrep_create_appliers
(
wsrep_slave_threads
-
1
);
}
}
else
wsrep_init_startup
(
false
);
if
(
opt_bootstrap
)
{
...
...
@@ -8523,7 +8525,7 @@ static int mysql_init_variables(void)
strmake_buf
(
mysql_home
,
tmpenv
);
#endif
if
(
WSREP_ON
&&
wsrep_init_vars
())
if
(
wsrep_init_vars
())
return
1
;
return
0
;
...
...
sql/sys_vars.cc
View file @
d06b5b6a
...
...
@@ -4575,7 +4575,7 @@ static Sys_var_mybool Sys_wsrep_sst_donor_rejects_queries(
static
Sys_var_mybool
Sys_wsrep_on
(
"wsrep_on"
,
"To enable wsrep replication "
,
SESSION_VAR
(
wsrep_on
),
CMD_LINE
(
OPT_ARG
),
DEFAULT
(
TRUE
),
CMD_LINE
(
OPT_ARG
),
DEFAULT
(
FALSE
),
NO_MUTEX_GUARD
,
NOT_IN_BINLOG
,
ON_CHECK
(
0
),
ON_UPDATE
(
wsrep_on_update
));
...
...
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