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
Show 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()
...
@@ -4142,15 +4142,6 @@ static int init_common_variables()
SQLCOM_END
+
8
);
SQLCOM_END
+
8
);
#endif
#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
))
if
(
get_options
(
&
remaining_argc
,
&
remaining_argv
))
return
1
;
return
1
;
set_server_version
();
set_server_version
();
...
@@ -4990,6 +4981,9 @@ a file name for --log-bin-index option", opt_binlog_index_name);
...
@@ -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 */
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 */
/* we do want to exit if there are any other unknown options */
if
(
remaining_argc
>
1
)
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);
...
@@ -152,8 +152,8 @@ extern void wsrep_kill_mysql(THD *thd);
/* new defines */
/* new defines */
extern
void
wsrep_stop_replication
(
THD
*
thd
);
extern
void
wsrep_stop_replication
(
THD
*
thd
);
extern
bool
wsrep_start_replication
();
extern
bool
wsrep_start_replication
();
extern
bool
wsrep_sync_wait
(
THD
*
thd
,
uint
mask
=
WSREP_SYNC_WAIT_BEFORE_READ
);
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
int
wsrep_check_opts
(
);
extern
void
wsrep_prepend_PATH
(
const
char
*
path
);
extern
void
wsrep_prepend_PATH
(
const
char
*
path
);
/* some inline functions are defined in wsrep_mysqld_inl.h */
/* 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