summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <monty@narttu.mysql.fi>2003-05-19 11:09:46 +0300
committerunknown <monty@narttu.mysql.fi>2003-05-19 11:09:46 +0300
commit2dd3c9298a2404cddc2e36e1710e6af3a05e5fc1 (patch)
tree52471b2a2c7914c16dc75b35bf289bfc00f829e1 /sql
parentda737d143a8a2729ebb68a2f0cfa582489e158ed (diff)
parent6832b0a9c20338688667abe11185172d19289c19 (diff)
downloadmariadb-git-2dd3c9298a2404cddc2e36e1710e6af3a05e5fc1.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into narttu.mysql.fi:/my/mysql-4.1 sql/mysqld.cc: Auto merged
Diffstat (limited to 'sql')
-rw-r--r--sql/mysqld.cc10
-rw-r--r--sql/sql_list.h3
2 files changed, 4 insertions, 9 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index ba9ecfa1d27..d39b4ecd17f 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -318,14 +318,8 @@ my_bool opt_console= 0, opt_bdb, opt_innodb, opt_isam;
volatile bool mqh_used = 0;
FILE *bootstrap_file=0;
-int segfaulted = 0; // ensure we do not enter SIGSEGV handler twice
-/*
- If sql_bin_update is true, SQL_LOG_UPDATE and SQL_LOG_BIN are kept in sync,
- and are treated as aliases for each other
-*/
-
-static bool kill_in_progress=FALSE;
+static bool kill_in_progress=0, segfaulted= 0;
struct rand_struct sql_rand; // used by sql_class.cc:THD::THD()
static int cleanup_done;
static char **defaults_argv;
@@ -379,7 +373,7 @@ arg_cmp_func Arg_comparator::comparator_matrix[4][2] =
{&Arg_comparator::compare_row, &Arg_comparator::compare_e_row}};
#ifdef HAVE_SMEM
char *shared_memory_base_name=default_shared_memory_base_name;
-bool opt_enable_shared_memory = 0;
+my_bool opt_enable_shared_memory = 0;
#endif
volatile ulong cached_thread_count=0;
diff --git a/sql/sql_list.h b/sql/sql_list.h
index 6eb4f98c011..f4cca627515 100644
--- a/sql/sql_list.h
+++ b/sql/sql_list.h
@@ -319,7 +319,8 @@ template <class T> class I_List_iterator;
class base_ilist {
public:
struct ilink *first,last;
- base_ilist() { first= &last; last.prev= &first; }
+ inline void empty() { first= &last; last.prev= &first; }
+ base_ilist() { empty(); }
inline bool is_empty() { return first == &last; }
inline void append(ilink *a)
{