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
53582238
Commit
53582238
authored
Mar 12, 2024
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: remove convert_dash_to_underscore
it was a no-op, plugin variables don't have dashes
parent
df10a945
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
11 deletions
+1
-11
include/my_getopt.h
include/my_getopt.h
+0
-9
sql/sql_plugin.cc
sql/sql_plugin.cc
+1
-2
No files found.
include/my_getopt.h
View file @
53582238
...
...
@@ -134,15 +134,6 @@ double getopt_double_limit_value(double num, const struct my_option *optp,
ulonglong
getopt_double2ulonglong
(
double
);
double
getopt_ulonglong2double
(
ulonglong
);
static
inline
void
convert_dash_to_underscore
(
char
*
str
,
size_t
len
)
{
for
(
char
*
p
=
str
;
p
<=
str
+
len
;
p
++
)
if
(
*
p
==
'-'
)
*
p
=
'_'
;
else
if
(
*
p
!=
'_'
&&
isalnum
(
*
p
)
==
0
)
break
;
}
static
inline
void
convert_underscore_to_dash
(
char
*
str
,
size_t
len
)
{
for
(
char
*
p
=
str
;
p
<=
str
+
len
;
p
++
)
...
...
sql/sql_plugin.cc
View file @
53582238
...
...
@@ -4220,10 +4220,9 @@ static int test_plugin_options(MEM_ROOT *tmp_root, struct st_plugin_int *tmp,
var
=
NULL
;
len
=
tmp
->
name
.
length
+
strlen
(
o
->
name
)
+
2
;
varname
=
(
char
*
)
alloc_root
(
mem_root
,
len
);
strxmov
(
varname
,
tmp
->
name
.
str
,
"
-
"
,
o
->
name
,
NullS
);
strxmov
(
varname
,
tmp
->
name
.
str
,
"
_
"
,
o
->
name
,
NullS
);
// Ok to use latin1, as the variable name is pure ASCII
my_casedn_str_latin1
(
varname
);
convert_dash_to_underscore
(
varname
,
len
-
1
);
}
if
(
o
->
flags
&
PLUGIN_VAR_NOSYSVAR
)
{
...
...
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