~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/cache.h

  • Committer: Stewart Smith
  • Date: 2011-01-14 05:13:52 UTC
  • mto: (2086.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 2087.
  • Revision ID: stewart@flamingspork.com-20110114051352-ytdw2wn6thbf4dr8
fix tpyo

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#define DRIZZLED_TABLE_CACHE_H
24
24
 
25
25
#include <boost/unordered_map.hpp>
26
 
#include <drizzled/identifier.h>
27
26
 
28
27
namespace drizzled {
29
 
 
30
 
class Session;
31
 
 
32
28
namespace table {
33
29
 
34
 
namespace instance {
35
 
class Shared;
36
 
37
 
 
38
30
class Concurrent;
39
31
 
40
 
typedef boost::unordered_multimap< identifier::Table::Key, Concurrent *> CacheMap;
 
32
typedef boost::unordered_multimap< TableIdentifier::Key, Concurrent *> CacheMap;
41
33
typedef std::pair< CacheMap::const_iterator, CacheMap::const_iterator > CacheRange;
42
34
 
43
35
class Cache 
63
55
  }
64
56
 
65
57
  bool areTablesUsed(Table *table, bool wait_for_name_lock);
66
 
  void removeSchema(const identifier::Schema &schema_identifier);
67
 
  bool removeTable(Session *session, identifier::Table &identifier, uint32_t flags);
68
 
  void release(table::instance::Shared *share);
 
58
  void removeSchema(const SchemaIdentifier &schema_identifier);
 
59
  bool removeTable(Session *session, TableIdentifier &identifier, uint32_t flags);
 
60
  void release(TableShare *share);
69
61
  bool insert(table::Concurrent *arg);
70
62
 
71
63
  boost::mutex &mutex()