From 9df615b7b19fb5c242ef10b58f2ff3b821a8d6a7 Mon Sep 17 00:00:00 2001 From: "guilhem@mysql.com" <> Date: Wed, 2 Apr 2003 10:59:21 +0200 Subject: [PATCH] Tiny optimisation for a (boolean || boolean) test, as SQL_LOG_BIN is set to 1 by default --- sql/sql_insert.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 97e7e1a5d7f..2a747bbc089 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -111,7 +111,7 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list, By default, both logs are enabled (this won't cause problems if the server runs without --log-update or --log-bin). */ - bool log_on= (!(thd->master_access & SUPER_ACL)) || (thd->options & OPTION_BIN_LOG); + bool log_on= (thd->options & OPTION_BIN_LOG) || (!(thd->master_access & SUPER_ACL)); bool transactional_table, log_delayed, bulk_insert; uint value_count; ulong counter = 1;