summaryrefslogtreecommitdiff
path: root/sql/log_event.h
diff options
context:
space:
mode:
authorsasha@mysql.sashanet.com <>2001-07-28 11:46:22 -0600
committersasha@mysql.sashanet.com <>2001-07-28 11:46:22 -0600
commit72c39117dffeef9af51833ea32b9d71db67514eb (patch)
tree10bcb6a30cf4d84891c95a27286f38d30659eb19 /sql/log_event.h
parent79e467f0a351be1538a606ec9fe255b9a49a9ef6 (diff)
downloadmariadb-git-72c39117dffeef9af51833ea32b9d71db67514eb.tar.gz
do not log stray error codes in Query_log_event
Diffstat (limited to 'sql/log_event.h')
-rw-r--r--sql/log_event.h3
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