~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/schema_engine/schema.cc

  • Committer: kalebral at gmail
  • Date: 2010-12-04 04:58:08 UTC
  • mto: (1971.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1972.
  • Revision ID: kalebral@gmail.com-20101204045808-acto22oxfg43m02e
a few more updates of files that did not have license or had incorrect license structure

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#include "drizzled/data_home.h"
31
31
 
32
32
#include "drizzled/internal/my_sys.h"
 
33
#include "drizzled/transaction_services.h"
33
34
 
34
35
#include <fcntl.h>
35
36
#include <sys/stat.h>
58
59
  schema_cache_filled(false)
59
60
{
60
61
  table_definition_ext= DEFAULT_FILE_EXTENSION;
 
62
  prime();
61
63
}
62
64
 
63
65
Schema::~Schema()
155
157
  }
156
158
  mutex.unlock();
157
159
 
 
160
  TransactionServices &transaction_services= TransactionServices::singleton();
 
161
  transaction_services.allocateNewTransactionId();
 
162
 
158
163
  return true;
159
164
}
160
165
 
195
200
  schema_cache.erase(schema_identifier.getPath());
196
201
  mutex.unlock();
197
202
 
 
203
  TransactionServices &transaction_services= TransactionServices::singleton();
 
204
  transaction_services.allocateNewTransactionId();
 
205
 
198
206
  return true;
199
207
}
200
208
 
220
228
      }
221
229
    }
222
230
    mutex.unlock();
 
231
 
 
232
    TransactionServices &transaction_services= TransactionServices::singleton();
 
233
    transaction_services.allocateNewTransactionId();
223
234
  }
224
235
 
225
236
  return true;
332
343
  return false;
333
344
}
334
345
 
 
346
bool Schema::doCanCreateTable(const drizzled::TableIdentifier &identifier)
 
347
{
 
348
 
 
349
  // This should always be the same value as GLOBAL_TEMPORARY_EXT but be
 
350
  // CASE_UP. --Brian 
 
351
  //
 
352
  // This needs to be done static in here for ordering reasons
 
353
  static SchemaIdentifier TEMPORARY_IDENTIFIER(".TEMPORARY");
 
354
  if (static_cast<const SchemaIdentifier&>(identifier) == TEMPORARY_IDENTIFIER)
 
355
  {
 
356
    return false;
 
357
  }
 
358
 
 
359
  return true;
 
360
}
 
361
 
335
362
void Schema::doGetTableIdentifiers(drizzled::CachedDirectory&,
336
363
                                   const drizzled::SchemaIdentifier&,
337
364
                                   drizzled::TableIdentifier::vector&)