summaryrefslogtreecommitdiff
path: root/sql/log_event.h
diff options
context:
space:
mode:
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