~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.h

Fix issue where there are too many files in data directory. We now only
cache files with correct ext. AKA... we no longer keep all the filenames in
memory. The comparison operation will have us holding the lock on directory
a little longer (aka... whatever the OS is doing).

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
{
81
81
 
82
82
const std::string UNKNOWN_STRING("UNKNOWN");
 
83
const std::string DEFAULT_DEFINITION_FILE_EXT(".dfe");
 
84
const unsigned int MAX_STORAGE_ENGINE_FILE_EXT= 4;
 
85
    
83
86
 
84
87
/*
85
88
  StorageEngine is a singleton structure - one instance per storage engine -
116
119
  void setTransactionReadWrite(Session* session);
117
120
 
118
121
protected:
 
122
  std::string table_definition_ext;
 
123
 
 
124
public:
 
125
  const std::string& getTableDefinotionExt()
 
126
  {
 
127
    return table_definition_ext;
 
128
  }
 
129
 
 
130
protected:
119
131
 
120
132
  /**
121
133
   * Implementing classes should override these to provide savepoint