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
13af416a
Commit
13af416a
authored
Sep 28, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: wsrep_check_opts
parent
425dc6d2
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
352 deletions
+69
-352
sql/mysqld.cc
sql/mysqld.cc
+3
-9
sql/wsrep_check_opts.cc
sql/wsrep_check_opts.cc
+64
-341
sql/wsrep_mysqld.h
sql/wsrep_mysqld.h
+2
-2
No files found.
sql/mysqld.cc
View file @
13af416a
...
...
@@ -4142,15 +4142,6 @@ static int init_common_variables()
SQLCOM_END
+
8
);
#endif
#ifdef WITH_WSREP
/*
This is a protection against mutually incompatible option values.
Note WSREP_ON == global_system_variables.wsrep_on
*/
if
(
WSREP_ON
&&
wsrep_check_opts
(
remaining_argc
,
remaining_argv
))
global_system_variables
.
wsrep_on
=
0
;
#endif
/* WITH_WSREP */
if
(
get_options
(
&
remaining_argc
,
&
remaining_argv
))
return
1
;
set_server_version
();
...
...
@@ -4990,6 +4981,9 @@ a file name for --log-bin-index option", opt_binlog_index_name);
}
plugins_are_initialized
=
TRUE
;
/* Don't separate from init function */
if
(
wsrep_check_opts
())
unireg_abort
(
1
);
/* we do want to exit if there are any other unknown options */
if
(
remaining_argc
>
1
)
{
...
...
sql/wsrep_check_opts.cc
View file @
13af416a
This diff is collapsed.
Click to expand it.
sql/wsrep_mysqld.h
View file @
13af416a
...
...
@@ -152,8 +152,8 @@ extern void wsrep_kill_mysql(THD *thd);
/* new defines */
extern
void
wsrep_stop_replication
(
THD
*
thd
);
extern
bool
wsrep_start_replication
();
extern
bool
wsrep_sync_wait
(
THD
*
thd
,
uint
mask
=
WSREP_SYNC_WAIT_BEFORE_READ
);
extern
int
wsrep_check_opts
(
int
argc
,
char
*
const
*
argv
);
extern
bool
wsrep_sync_wait
(
THD
*
thd
,
uint
mask
=
WSREP_SYNC_WAIT_BEFORE_READ
);
extern
int
wsrep_check_opts
(
);
extern
void
wsrep_prepend_PATH
(
const
char
*
path
);
/* some inline functions are defined in wsrep_mysqld_inl.h */
...
...
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