Commit 1f229562 authored by unknown's avatar unknown

Fix complilation failure

parent d1b3c64b
...@@ -1782,7 +1782,7 @@ void TMP_TABLE_PARAM::init() ...@@ -1782,7 +1782,7 @@ void TMP_TABLE_PARAM::init()
void thd_increment_bytes_sent(ulong length) void thd_increment_bytes_sent(ulong length)
{ {
THD *thd=current_thd; THD *thd=current_thd;
if (likely(thd)) if (likely(thd != 0))
{ /* current_thd==0 when close_connection() calls net_send_error() */ { /* current_thd==0 when close_connection() calls net_send_error() */
thd->status_var.bytes_sent+= length; thd->status_var.bytes_sent+= length;
} }
......
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