Commit cf1e5bef authored by Aleksey Midenkov's avatar Aleksey Midenkov

Cleanup: needless set_current_time()

parent be81b00c
......@@ -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:
inline void set_start_time()
{
set_system_time();
if (user_time.val)
{
set_system_time();
start_time= hrtime_to_my_time(user_time);
start_time_sec_part= hrtime_sec_part(user_time);
PSI_CALL_set_thread_start_time(start_time);
}
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()
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment