~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/catalog.cc

  • Committer: Brian Aker
  • Date: 2011-03-24 23:14:46 UTC
  • mfrom: (2246.4.12 foreach)
  • Revision ID: brian@tangent.org-20110324231446-7q1gydkglys73nft
Merge in XTF

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
{
55
55
}
56
56
 
57
 
bool Catalog::create(identifier::Catalog::const_reference identifier)
 
57
bool Catalog::create(const identifier::Catalog& identifier)
58
58
{
59
59
  message::catalog::shared_ptr message= message::catalog::make_shared(identifier);
60
60
  return create(identifier, message);
61
61
}
62
62
 
63
 
bool Catalog::create(identifier::Catalog::const_reference identifier, message::catalog::shared_ptr &message)
 
63
bool Catalog::create(const identifier::Catalog& identifier, message::catalog::shared_ptr &message)
64
64
{
65
65
  assert(message);
66
66
 
89
89
  return true;
90
90
}
91
91
 
92
 
bool Catalog::drop(identifier::Catalog::const_reference identifier)
 
92
bool Catalog::drop(const identifier::Catalog& identifier)
93
93
{
94
94
  if (identifier == drizzled::catalog::local_identifier())
95
95
  {
122
122
  return true;
123
123
}
124
124
 
125
 
bool Catalog::lock(identifier::Catalog::const_reference identifier)
 
125
bool Catalog::lock(const identifier::Catalog& identifier)
126
126
{
127
127
  drizzled::error_t error;
128
128
  
138
138
}
139
139
 
140
140
 
141
 
bool Catalog::unlock(identifier::Catalog::const_reference identifier)
 
141
bool Catalog::unlock(const identifier::Catalog& identifier)
142
142
{
143
143
  drizzled::error_t error;
144
144
  if (not catalog::Cache::singleton().unlock(identifier, error))
156
156
  return false;
157
157
}
158
158
 
159
 
bool plugin::Catalog::exist(identifier::Catalog::const_reference identifier)
 
159
bool plugin::Catalog::exist(const identifier::Catalog& identifier)
160
160
{
161
161
  if (catalog::Cache::singleton().exist(identifier))
162
162
    return true;
186
186
  }
187
187
}
188
188
 
189
 
message::catalog::shared_ptr plugin::Catalog::getMessage(identifier::Catalog::const_reference identifier)
 
189
message::catalog::shared_ptr plugin::Catalog::getMessage(const identifier::Catalog& identifier)
190
190
{
191
191
  drizzled::error_t error;
192
192
  catalog::Instance::shared_ptr instance= catalog::Cache::singleton().find(identifier, error);
206
206
  return message;
207
207
}
208
208
 
209
 
catalog::Instance::shared_ptr plugin::Catalog::getInstance(identifier::Catalog::const_reference identifier)
 
209
catalog::Instance::shared_ptr plugin::Catalog::getInstance(const identifier::Catalog& identifier)
210
210
{
211
211
  drizzled::error_t error;
212
212
  catalog::Instance::shared_ptr instance= catalog::Cache::singleton().find(identifier, error);