diff --git a/sql/log.cc b/sql/log.cc
|
index 569942a..b46d6d6 100644
|
--- a/sql/log.cc
|
+++ b/sql/log.cc
|
@@ -1317,8 +1317,8 @@ bool LOGGER::slow_log_print(THD *thd, const char *query, uint query_length,
|
DBUG_ASSERT(thd->start_time);
|
query_utime= (current_utime - thd->start_utime);
|
lock_utime= (thd->utime_after_lock - thd->start_utime);
|
- my_hrtime_t current_time= { hrtime_from_time(thd->start_time) +
|
- thd->start_time_sec_part + query_utime };
|
+ my_hrtime_t start_time= { hrtime_from_time(thd->start_time) +
|
+ thd->start_time_sec_part };
|
|
if (!query)
|
{
|
@@ -1328,7 +1328,7 @@ bool LOGGER::slow_log_print(THD *thd, const char *query, uint query_length,
|
}
|
|
for (current_handler= slow_log_handler_list; *current_handler ;)
|
- error= (*current_handler++)->log_slow(thd, current_time,
|
+ error= (*current_handler++)->log_slow(thd, start_time,
|
user_host_buff, user_host_len,
|
query_utime, lock_utime, is_command,
|
query, query_length) || error;
|