mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
do not log stray error codes in Query_log_event
This commit is contained in:
parent
79e467f0a3
commit
72c39117df
1 changed files with 3 additions and 0 deletions
|
@ -145,6 +145,9 @@ public:
|
|||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue