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
09e62801
Commit
09e62801
authored
Feb 26, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused THD::query_start_used
parent
85194bd6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
8 deletions
+5
-8
sql/sql_class.cc
sql/sql_class.cc
+1
-1
sql/sql_class.h
sql/sql_class.h
+3
-3
sql/sql_insert.cc
sql/sql_insert.cc
+1
-3
sql/sql_parse.cc
sql/sql_parse.cc
+0
-1
No files found.
sql/sql_class.cc
View file @
09e62801
...
...
@@ -803,7 +803,7 @@ THD::THD(my_thread_id id, bool is_wsrep_applier, bool skip_global_sys_var_lock)
security_ctx
=
&
main_security_ctx
;
no_errors
=
0
;
password
=
0
;
query_start_
used
=
query_start_
sec_part_used
=
0
;
query_start_sec_part_used
=
0
;
count_cuted_fields
=
CHECK_FIELD_IGNORE
;
killed
=
NOT_KILLED
;
killed_err
=
0
;
...
...
sql/sql_class.h
View file @
09e62801
...
...
@@ -3116,7 +3116,7 @@ class THD :public Statement,
Reset to FALSE when we leave the sub-statement mode.
*/
bool
is_fatal_sub_stmt_error
;
bool
query_start_used
,
rand_used
,
time_zone_used
;
bool
rand_used
,
time_zone_used
;
bool
query_start_sec_part_used
;
/* for IS NULL => = last_insert_id() fix in remove_eq_conds() */
bool
substitute_null_with_insert_id
;
...
...
@@ -3429,7 +3429,7 @@ class THD :public Statement,
const
Type_handler
*
type_handler_for_date
()
const
;
bool
timestamp_to_TIME
(
MYSQL_TIME
*
ltime
,
my_time_t
ts
,
ulong
sec_part
,
ulonglong
fuzzydate
);
inline
my_time_t
query_start
()
{
query_start_used
=
1
;
return
start_time
;
}
inline
my_time_t
query_start
()
{
return
start_time
;
}
inline
ulong
query_start_sec_part
()
{
query_start_sec_part_used
=
1
;
return
start_time_sec_part
;
}
MYSQL_TIME
query_start_TIME
();
...
...
@@ -3441,7 +3441,7 @@ class THD :public Statement,
}
system_time
;
ulong
systime_sec_part
()
{
query_start_sec_part_used
=
1
;
return
system_time
.
sec_part
;
}
my_time_t
systime
()
{
query_start_used
=
1
;
return
system_time
.
sec
;
}
my_time_t
systime
()
{
return
system_time
.
sec
;
}
private
:
void
set_system_time
()
...
...
sql/sql_insert.cc
View file @
09e62801
...
...
@@ -2095,7 +2095,7 @@ class delayed_row :public ilink {
ulong
start_time_sec_part
;
sql_mode_t
sql_mode
;
bool
auto_increment_field_not_null
;
bool
query_start_used
,
ignore
,
log_query
,
query_start_sec_part_used
;
bool
ignore
,
log_query
,
query_start_sec_part_used
;
bool
stmt_depends_on_first_successful_insert_id_in_prev_stmt
;
ulonglong
first_successful_insert_id_in_prev_stmt
;
ulonglong
forced_insert_id
;
...
...
@@ -2706,7 +2706,6 @@ int write_delayed(THD *thd, TABLE *table, enum_duplicates duplic,
goto
err
;
memcpy
(
row
->
record
,
table
->
record
[
0
],
table
->
s
->
reclength
);
row
->
start_time
=
thd
->
start_time
;
row
->
query_start_used
=
thd
->
query_start_used
;
row
->
start_time_sec_part
=
thd
->
start_time_sec_part
;
row
->
query_start_sec_part_used
=
thd
->
query_start_sec_part_used
;
/*
...
...
@@ -3294,7 +3293,6 @@ bool Delayed_insert::handle_inserts(void)
set_delayed_insert_blobs
(
table
);
thd
.
start_time
=
row
->
start_time
;
thd
.
query_start_used
=
row
->
query_start_used
;
thd
.
start_time_sec_part
=
row
->
start_time_sec_part
;
thd
.
query_start_sec_part_used
=
row
->
query_start_sec_part_used
;
/*
...
...
sql/sql_parse.cc
View file @
09e62801
...
...
@@ -7578,7 +7578,6 @@ void THD::reset_for_next_command(bool do_clear_error)
global_system_variables
.
auto_increment_increment
;
}
#endif
/* WITH_WSREP */
query_start_used
=
0
;
query_start_sec_part_used
=
0
;
is_fatal_error
=
time_zone_used
=
0
;
log_current_statement
=
0
;
...
...
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