~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.h

  • Committer: lbieber
  • Date: 2010-09-08 16:39:38 UTC
  • mfrom: (1749.1.2 build)
  • Revision ID: lbieber@orisndriz03-20100908163938-gdg763wz3cvwpjpi
Merge Andrew - fix bug 619591 - needed to clean up embedded innodb test results
Merge Lee - fix bug 628336 - Remove unused error messages

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
21
21
#define DRIZZLED_SQL_BASE_H
22
22
 
23
23
#include <drizzled/table.h>
24
 
#include <drizzled/table/concurrent.h>
25
24
 
26
25
namespace drizzled
27
26
{
33
32
uint32_t cached_open_tables(void);
34
33
uint32_t cached_table_definitions(void);
35
34
 
36
 
table::Cache &get_open_cache();
 
35
typedef boost::unordered_multimap< TableIdentifier::Key, Table *> TableOpenCache;
 
36
typedef std::pair< TableOpenCache::const_iterator, TableOpenCache::const_iterator > TableOpenCacheRange;
 
37
 
 
38
TableOpenCache &get_open_cache();
 
39
void remove_table(Table *arg);
37
40
 
38
41
void kill_drizzle(void);
39
42
 
132
135
                               const char *table_name);
133
136
TableList *unique_table(TableList *table, TableList *table_list,
134
137
                        bool check_alias= false);
 
138
void remove_db_from_cache(const SchemaIdentifier &schema_identifier);
135
139
 
136
 
/* bits for last argument to table::Cache::singleton().removeTable() */
 
140
/* bits for last argument to remove_table_from_cache() */
137
141
#define RTFC_NO_FLAG                0x0000
138
142
#define RTFC_OWNED_BY_Session_FLAG      0x0001
139
143
#define RTFC_WAIT_OTHER_THREAD_FLAG 0x0002
140
144
#define RTFC_CHECK_KILLED_FLAG      0x0004
 
145
bool remove_table_from_cache(Session *session, TableIdentifier &identifier, uint32_t flags);
141
146
 
142
147
void mem_alloc_error(size_t size);
143
148