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
eda4c512
Commit
eda4c512
authored
Apr 09, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
3ad01d00
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
36 deletions
+20
-36
sql/create_options.cc
sql/create_options.cc
+14
-16
sql/create_options.h
sql/create_options.h
+6
-9
sql/sql_plugin.cc
sql/sql_plugin.cc
+0
-11
No files found.
sql/create_options.cc
View file @
eda4c512
...
...
@@ -74,7 +74,7 @@ void engine_option_value::link(engine_option_value **start,
}
static
bool
report_wrong_value
(
THD
*
thd
,
const
char
*
name
,
const
char
*
val
,
my_
bool
suppress_warning
)
bool
suppress_warning
)
{
if
(
suppress_warning
)
return
0
;
...
...
@@ -92,7 +92,7 @@ static bool report_wrong_value(THD *thd, const char *name, const char *val,
}
static
bool
report_unknown_option
(
THD
*
thd
,
engine_option_value
*
val
,
my_
bool
suppress_warning
)
bool
suppress_warning
)
{
DBUG_ENTER
(
"report_unknown_option"
);
...
...
@@ -116,7 +116,7 @@ static bool report_unknown_option(THD *thd, engine_option_value *val,
static
bool
set_one_value
(
ha_create_table_option
*
opt
,
THD
*
thd
,
LEX_STRING
*
value
,
void
*
base
,
my_
bool
suppress_warning
,
bool
suppress_warning
,
MEM_ROOT
*
root
)
{
DBUG_ENTER
(
"set_one_value"
);
...
...
@@ -257,11 +257,10 @@ static const size_t ha_option_type_sizeof[]=
@retval FALSE OK
*/
my_
bool
parse_option_list
(
THD
*
thd
,
void
*
option_struct_arg
,
bool
parse_option_list
(
THD
*
thd
,
void
*
option_struct_arg
,
engine_option_value
*
option_list
,
ha_create_table_option
*
rules
,
my_bool
suppress_warning
,
MEM_ROOT
*
root
)
bool
suppress_warning
,
MEM_ROOT
*
root
)
{
ha_create_table_option
*
opt
;
size_t
option_struct_size
=
0
;
...
...
@@ -269,13 +268,13 @@ my_bool parse_option_list(THD* thd, void *option_struct_arg,
void
**
option_struct
=
(
void
**
)
option_struct_arg
;
DBUG_ENTER
(
"parse_option_list"
);
DBUG_PRINT
(
"enter"
,
(
"struct:
0x%lx list: 0x%lx rules: 0x%lx suppres %u root 0x%lx
"
,
(
ulong
)
*
option_struct
,
(
ulong
)
option_list
,
(
ulong
)
rules
,
(
uint
)
suppress_warning
,
(
ulong
)
root
));
(
"struct:
%p list: %p rules: %p suppress_warning: %u root: %p
"
,
*
option_struct
,
option_list
,
rules
,
(
uint
)
suppress_warning
,
root
));
if
(
rules
)
{
LEX_STRING
default_val
=
{
NULL
,
0
}
;
LEX_STRING
default_val
=
null_lex_str
;
for
(
opt
=
rules
;
opt
->
name
;
opt
++
)
set_if_bigger
(
option_struct_size
,
opt
->
offset
+
ha_option_type_sizeof
[
opt
->
type
]);
...
...
@@ -323,8 +322,7 @@ my_bool parse_option_list(THD* thd, void *option_struct_arg,
@retval FALSE OK
*/
my_bool
parse_engine_table_options
(
THD
*
thd
,
handlerton
*
ht
,
TABLE_SHARE
*
share
)
bool
parse_engine_table_options
(
THD
*
thd
,
handlerton
*
ht
,
TABLE_SHARE
*
share
)
{
MEM_ROOT
*
root
=
&
share
->
mem_root
;
DBUG_ENTER
(
"parse_engine_table_options"
);
...
...
@@ -543,7 +541,7 @@ uchar *engine_option_value::frm_read(const uchar *buff, engine_option_value **st
@retval FALSE OK
*/
my_
bool
engine_table_options_frm_read
(
const
uchar
*
buff
,
uint
length
,
bool
engine_table_options_frm_read
(
const
uchar
*
buff
,
uint
length
,
TABLE_SHARE
*
share
)
{
const
uchar
*
buff_end
=
buff
+
length
;
...
...
sql/create_options.h
View file @
eda4c512
...
...
@@ -69,15 +69,12 @@ class engine_option_value: public Sql_alloc
typedef
struct
st_key
KEY
;
class
Create_field
;
my_bool
parse_engine_table_options
(
THD
*
thd
,
handlerton
*
ht
,
TABLE_SHARE
*
share
);
my_bool
parse_option_list
(
THD
*
thd
,
void
*
option_struct
,
bool
parse_engine_table_options
(
THD
*
thd
,
handlerton
*
ht
,
TABLE_SHARE
*
share
);
bool
parse_option_list
(
THD
*
thd
,
void
*
option_struct
,
engine_option_value
*
option_list
,
ha_create_table_option
*
rules
,
my_bool
suppress_warning
,
MEM_ROOT
*
root
);
my_bool
engine_table_options_frm_read
(
const
uchar
*
buff
,
uint
length
,
bool
suppress_warning
,
MEM_ROOT
*
root
);
bool
engine_table_options_frm_read
(
const
uchar
*
buff
,
uint
length
,
TABLE_SHARE
*
share
);
engine_option_value
*
merge_engine_table_options
(
engine_option_value
*
source
,
engine_option_value
*
changes
,
...
...
sql/sql_plugin.cc
View file @
eda4c512
...
...
@@ -3387,17 +3387,6 @@ static void plugin_opt_set_limits(struct my_option *options,
options
->
arg_type
=
OPT_ARG
;
}
extern
"C"
my_bool
get_one_plugin_option
(
int
optid
,
const
struct
my_option
*
,
char
*
);
my_bool
get_one_plugin_option
(
int
optid
__attribute__
((
unused
)),
const
struct
my_option
*
opt
,
char
*
argument
)
{
return
0
;
}
/**
Creates a set of my_option objects associated with a specified plugin-
handle.
...
...
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