diff options
author | unknown <sasha@mysql.sashanet.com> | 2001-07-28 11:46:22 -0600 |
---|---|---|
committer | unknown <sasha@mysql.sashanet.com> | 2001-07-28 11:46:22 -0600 |
commit | a774d5614994e7fe5c73b87f411daba18cf6a8ab (patch) | |
tree | 10bcb6a30cf4d84891c95a27286f38d30659eb19 /sql/log_event.h | |
parent | 29ef9455578c37f5581609171bb1abc7d0410162 (diff) | |
download | mariadb-git-a774d5614994e7fe5c73b87f411daba18cf6a8ab.tar.gz |
do not log stray error codes in Query_log_event
sql/log_event.h:
do not log stray error codes
Diffstat (limited to 'sql/log_event.h')
-rw-r--r-- | sql/log_event.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/log_event.h b/sql/log_event.h index 41f847e8d92..8d8ac183f61 100644 --- a/sql/log_event.h +++ b/sql/log_event.h @@ -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 |