1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
* Copyright (C) 2008 Sun Microsystems
5
* Copyright (C) 2010 Monty Taylor
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; version 2 of the License.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
#ifndef DRIZZLED_DRIZZLED_H
22
#define DRIZZLED_DRIZZLED_H
25
#include <boost/program_options.hpp>
27
#include "drizzled/atomics.h"
28
#include "drizzled/global_buffer.h"
29
#include "drizzled/definitions.h"
40
extern std::bitset<12> test_flags;
41
extern atomic<uint32_t> connection_count;
42
extern const char *load_default_groups[];
43
extern bool volatile select_thread_in_use;
44
extern bool volatile abort_loop;
45
extern bool volatile ready_to_exit;
47
extern bool opt_help_extended;
48
extern passwd *user_info;
49
extern char *drizzled_user;
51
extern global_buffer_constraint<uint64_t> global_sort_buffer;
52
extern global_buffer_constraint<uint64_t> global_join_buffer;
53
extern global_buffer_constraint<uint64_t> global_read_rnd_buffer;
54
extern global_buffer_constraint<uint64_t> global_read_buffer;
56
extern const char * const DRIZZLE_CONFIG_NAME;
58
boost::program_options::variables_map &getVariablesMap();
60
int init_thread_environment();
61
int init_server_components(module::Registry &modules);
62
int init_common_variables(int argc, char **argv, module::Registry &modules);
64
passwd *check_user(const char *user);
65
void set_user(const char *user, passwd *user_info_arg);
66
void clean_up(bool print_message);
67
bool drizzle_rm_tmp_tables();
69
} /* namespace drizzled */
71
#endif /* DRIZZLED_DRIZZLED_H */