Commit 1f93d6be authored by unknown's avatar unknown

do not log stray error codes in Query_log_event


sql/log_event.h:
  do not log stray error codes
parent 5fe6a584
......@@ -145,6 +145,9 @@ class Query_log_event: public Log_event
time(&end_time);
exec_time = (ulong) (end_time - thd->start_time);
db_len = (db) ? (uint32) strlen(db) : 0;
// do not log stray system errors such as EE_WRITE
if (error_code < ERRMOD)
error_code = 0;
}
#endif
......
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