~drizzle-trunk/drizzle/development

1548.2.7 by Barry.Leslie at PrimeBase
Fixed some problems with transactions and drizzle.
1
/*
2
  *  Copyright (C) 2010 PrimeBase Technologies GmbH, Germany
3
 *
4
 *  This program is free software; you can redistribute it and/or modify
5
 *  it under the terms of the GNU General Public License as published by
6
 *  the Free Software Foundation; version 2 of the License.
7
 *
8
 *  This program is distributed in the hope that it will be useful,
9
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 *  GNU General Public License for more details.
12
 *
13
 *  You should have received a copy of the GNU General Public License
14
 *  along with this program; if not, write to the Free Software
15
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
16
 *
17
 * Barry Leslie
18
 *
19
 * 2010-06-09
20
 */
21
22
#ifdef DRIZZLED
23
#include "config.h"
24
#include <set>
25
#include <drizzled/common.h>
26
#include <drizzled/plugin.h>
27
#include <drizzled/session.h>
28
using namespace drizzled;
29
using namespace drizzled::plugin;
30
31
#define my_strdup(a,b) strdup(a)
32
33
#include "cslib/CSConfig.h"
34
#else
35
#include "cslib/CSConfig.h"
36
#include "mysql_priv.h"
37
#include <mysql/plugin.h>
38
#include <my_dir.h>
39
#endif 
40
41
#include <inttypes.h>
42
43
#include "cslib/CSDefs.h"
44
#include "cslib/CSObject.h"
45
#include "cslib/CSGlobal.h"
46
#include "cslib/CSThread.h"
47
#include "cslib/CSStrUtil.h"
48
1548.2.10 by Barry.Leslie at PrimeBase
Merge from trunk.
49
#include "defs_ms.h"
50
#include "mysql_ms.h"
1548.2.7 by Barry.Leslie at PrimeBase
Fixed some problems with transactions and drizzle.
51
#include "pbmsdaemon_ms.h"
52
53
54
char PBMSDaemon::pbd_home_dir[PATH_MAX];
55
PBMSDaemon::DaemonState PBMSDaemon::pbd_state = PBMSDaemon::DaemonUnknown;
56
57
void PBMSDaemon::setDaemonState(DaemonState state)
58
{
59
	pbd_state = state;
60
	
61
	if (pbd_state == DaemonStartUp) { // In theory we could allow this to be set with a commandline option.
62
		cs_make_absolute_path(PATH_MAX, pbd_home_dir, "pbms", ms_my_get_mysql_home_path()); 
63
	}
1548.2.14 by Barry.Leslie at PrimeBase
Code cleanup.
64
}