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
c47acc21
Commit
c47acc21
authored
Jun 19, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused function and array
parent
794a895c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
37 deletions
+0
-37
sql/mysqld.cc
sql/mysqld.cc
+0
-36
sql/sql_class.h
sql/sql_class.h
+0
-1
No files found.
sql/mysqld.cc
View file @
c47acc21
...
...
@@ -5430,41 +5430,6 @@ void decrement_handler_count()
#ifndef EMBEDDED_LIBRARY
LEX_STRING
sql_statement_names
[(
uint
)
SQLCOM_END
+
1
];
static
void
init_sql_statement_names
()
{
size_t
first_com
=
offsetof
(
STATUS_VAR
,
com_stat
[
0
]);
size_t
last_com
=
offsetof
(
STATUS_VAR
,
com_stat
[(
uint
)
SQLCOM_END
]);
int
record_size
=
offsetof
(
STATUS_VAR
,
com_stat
[
1
])
-
offsetof
(
STATUS_VAR
,
com_stat
[
0
]);
size_t
ptr
;
uint
i
;
uint
com_index
;
for
(
i
=
0
;
i
<
((
uint
)
SQLCOM_END
+
1
);
i
++
)
sql_statement_names
[
i
]
=
empty_lex_str
;
SHOW_VAR
*
var
=
&
com_status_vars
[
0
];
while
(
var
->
name
!=
NULL
)
{
ptr
=
(
size_t
)(
var
->
value
);
if
((
first_com
<=
ptr
)
&&
(
ptr
<=
last_com
))
{
com_index
=
((
int
)(
ptr
-
first_com
))
/
record_size
;
DBUG_ASSERT
(
com_index
<
(
uint
)
SQLCOM_END
);
sql_statement_names
[
com_index
].
str
=
const_cast
<
char
*>
(
var
->
name
);
sql_statement_names
[
com_index
].
length
=
strlen
(
var
->
name
);
}
var
++
;
}
DBUG_ASSERT
(
strcmp
(
sql_statement_names
[(
uint
)
SQLCOM_SELECT
].
str
,
"select"
)
==
0
);
DBUG_ASSERT
(
strcmp
(
sql_statement_names
[(
uint
)
SQLCOM_SIGNAL
].
str
,
"signal"
)
==
0
);
sql_statement_names
[(
uint
)
SQLCOM_END
].
str
=
const_cast
<
char
*>
(
"error"
);
}
#ifndef DBUG_OFF
/*
Debugging helper function to keep the locale database
...
...
@@ -5543,7 +5508,6 @@ int mysqld_main(int argc, char **argv)
/* Must be initialized early for comparison of options name */
system_charset_info
=
&
my_charset_utf8_general_ci
;
init_sql_statement_names
();
sys_var_init
();
#ifdef WITH_PERFSCHEMA_STORAGE_ENGINE
...
...
sql/sql_class.h
View file @
c47acc21
...
...
@@ -487,7 +487,6 @@ enum killed_type
#include "sql_lex.h"
/* Must be here */
extern
LEX_STRING
sql_statement_names
[(
uint
)
SQLCOM_END
+
1
];
class
Delayed_insert
;
class
select_result
;
class
Time_zone
;
...
...
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