From 72c39117dffeef9af51833ea32b9d71db67514eb Mon Sep 17 00:00:00 2001 From: "sasha@mysql.sashanet.com" <> Date: Sat, 28 Jul 2001 11:46:22 -0600 Subject: do not log stray error codes in Query_log_event --- sql/log_event.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sql/log_event.h') 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 -- cgit v1.2.1