~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/pbms/src/pbmsdaemon_ms.cc

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
 
49
 
#include "defs_ms.h"
50
 
#include "mysql_ms.h"
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
 
        }
64
 
}