Commit 72c39117 authored by sasha@mysql.sashanet.com's avatar sasha@mysql.sashanet.com
Browse files

do not log stray error codes in Query_log_event

parent 79e467f0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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