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
cf1e5bef
Commit
cf1e5bef
authored
Jan 09, 2018
by
Aleksey Midenkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: needless set_current_time()
parent
be81b00c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
sql/sql_class.h
sql/sql_class.h
+6
-11
No files found.
sql/sql_class.h
View file @
cf1e5bef
...
@@ -3405,26 +3405,21 @@ class THD :public Statement,
...
@@ -3405,26 +3405,21 @@ class THD :public Statement,
}
}
}
}
void
set_current_time
()
{
set_system_time
();
start_time
=
system_time
;
start_time_sec_part
=
system_time_sec_part
;
PSI_CALL_set_thread_start_time
(
start_time
);
}
public
:
public
:
inline
void
set_start_time
()
inline
void
set_start_time
()
{
{
set_system_time
();
if
(
user_time
.
val
)
if
(
user_time
.
val
)
{
{
set_system_time
();
start_time
=
hrtime_to_my_time
(
user_time
);
start_time
=
hrtime_to_my_time
(
user_time
);
start_time_sec_part
=
hrtime_sec_part
(
user_time
);
start_time_sec_part
=
hrtime_sec_part
(
user_time
);
PSI_CALL_set_thread_start_time
(
start_time
);
}
}
else
else
set_current_time
();
{
start_time
=
system_time
;
start_time_sec_part
=
system_time_sec_part
;
}
PSI_CALL_set_thread_start_time
(
start_time
);
}
}
inline
void
set_time
()
inline
void
set_time
()
{
{
...
...
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