~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/my_static.cc

  • Committer: Brian Aker
  • Date: 2010-02-11 22:43:58 UTC
  • Revision ID: brian@gaz-20100211224358-y0gdvnat2ahg4c1e
Disabling support for memcached plugins until we can test for version of
memcached.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
  a shared library
19
19
*/
20
20
 
21
 
#include "mysys_priv.h"
22
 
#include <mysys/mysys_err.h>
 
21
#include "config.h"
 
22
 
 
23
#include "drizzled/internal/my_sys.h"
 
24
#include "drizzled/error.h"
23
25
#include "my_static.h"
 
26
#include <stdlib.h>
 
27
 
 
28
namespace drizzled
 
29
{
 
30
namespace internal
 
31
{
24
32
 
25
33
bool timed_mutexes= 0;
26
34
 
32
40
uint32_t                my_stream_opened=0,my_file_opened=0, my_tmp_file_created=0;
33
41
uint32_t           my_file_total_opened= 0;
34
42
int my_umask=0664, my_umask_dir=0777;
35
 
struct st_my_file_info my_file_info_default[MY_NFILE]= {{0,UNOPEN}};
36
 
uint   my_file_limit= MY_NFILE;
37
 
struct st_my_file_info *my_file_info= my_file_info_default;
 
43
uint32_t   my_file_limit= MY_NFILE;
38
44
 
39
45
        /* From mf_brkhant */
40
46
int my_dont_interrupt=0;
41
47
volatile int            _my_signals=0;
42
 
struct st_remember _my_sig_remember[MAX_SIGNALS]={{0,0}};
43
48
sigset_t my_signals;                    /* signals blocked by mf_brkhant */
44
49
 
45
50
        /* from mf_reccache.c */
50
55
                                /* :::::::::::::::::::::::::: */
51
56
const char *soundex_map=          "01230120022455012623010202";
52
57
 
53
 
        /* from my_malloc */
54
 
USED_MEM* my_once_root_block=0;                 /* pointer to first block */
55
 
uint      my_once_extra=ONCE_ALLOC_INIT;        /* Memory to alloc / block */
56
 
 
57
58
        /* from safe_malloc */
58
 
uint sf_malloc_prehunc=0,               /* If you have problem with core- */
 
59
uint32_t sf_malloc_prehunc=0,           /* If you have problem with core- */
59
60
     sf_malloc_endhunc=0,               /* dump when malloc-message.... */
60
61
                                        /* set theese to 64 or 128  */
61
62
     sf_malloc_quick=0;                 /* set if no calls to sanity */
62
63
uint32_t sf_malloc_cur_memory= 0L;              /* Current memory usage */
63
64
uint32_t sf_malloc_max_memory= 0L;              /* Maximum memory usage */
64
 
uint  sf_malloc_count= 0;               /* Number of times NEW() was called */
65
 
uchar *sf_min_adress= (uchar*) ~(unsigned long) 0L,
66
 
     *sf_max_adress= (uchar*) 0L;
 
65
uint32_t  sf_malloc_count= 0;           /* Number of times NEW() was called */
 
66
unsigned char *sf_min_adress= (unsigned char*) ~(unsigned long) 0L,
 
67
     *sf_max_adress= (unsigned char*) 0L;
67
68
/* Root of the linked list of struct st_irem */
68
69
struct st_irem *sf_malloc_root = NULL;
69
70
 
71
72
int volatile my_have_got_alarm=0;       /* declare variable to reset */
72
73
uint32_t my_time_to_wait_for_lock=2;    /* In seconds */
73
74
 
74
 
        /* from errors.c */
75
 
void (*my_abort_hook)(int) = (void(*)(int)) exit;
76
 
void (*error_handler_hook)(uint error,const char *str,myf MyFlags)=
77
 
    my_message_no_curses;
78
 
void (*fatal_error_handler_hook)(uint error,const char *str,myf MyFlags)=
79
 
  my_message_no_curses;
80
 
 
81
75
        /* How to disable options */
82
 
bool my_disable_async_io=0;
 
76
bool my_disable_async_io= true;
83
77
bool my_disable_flush_key_blocks=0;
84
78
bool my_disable_symlinks=0;
85
79
bool mysys_uses_curses=0;
 
80
 
 
81
} /* namespace internal */
 
82
} /* namespace drizzled */