From 154d4f8485132db0ca4cea5aac3c42b7a05b036c Mon Sep 17 00:00:00 2001 From: "serg@serg.mylan" <> Date: Sat, 6 Aug 2005 12:48:41 +0200 Subject: [PATCH] log_event.h: extra safety for OPTIONS_WRITTEN_TO_BIN_LOG --- sql/log_event.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sql/log_event.h b/sql/log_event.h index 9f4681ae2c5..3ac1cfaf4bc 100644 --- a/sql/log_event.h +++ b/sql/log_event.h @@ -393,6 +393,10 @@ struct sql_ex_info #define OPTIONS_WRITTEN_TO_BIN_LOG (OPTION_AUTO_IS_NULL | \ OPTION_NO_FOREIGN_KEY_CHECKS | OPTION_RELAXED_UNIQUE_CHECKS) +#if OPTIONS_WRITTEN_TO_BIN_LOG != ((1L << 14) | (1L << 26) | (1L << 27)) +#error OPTIONS_WRITTEN_TO_BIN_LOG must NOT change their values! +#endif + enum Log_event_type { /*