39
38
table_cache_dictionary::TableDefinitionCache::Generator::Generator(drizzled::Field **arg) :
40
drizzled::plugin::TableFunction::Generator(arg),
39
drizzled::plugin::TableFunction::Generator(arg)
43
LOCK_open.lock(); /* Optionally lock for remove tables from open_cahe if not in use */
46
43
table_cache_dictionary::TableDefinitionCache::Generator::~Generator()
48
LOCK_open.unlock(); /* Optionally lock for remove tables from open_cahe if not in use */
51
bool table_cache_dictionary::TableDefinitionCache::Generator::nextCore()
55
table_share_iterator++;
60
table_share_iterator= definition::Cache::singleton().getCache().begin();
63
if (table_share_iterator == definition::Cache::singleton().getCache().end())
66
share= (*table_share_iterator).second;
71
bool table_cache_dictionary::TableDefinitionCache::Generator::next()
73
while (not nextCore())
75
if (table_share_iterator != definition::Cache::singleton().getCache().end())
84
47
bool table_cache_dictionary::TableDefinitionCache::Generator::populate()
94
void table_cache_dictionary::TableDefinitionCache::Generator::fill()
98
--replace_column 3 # 4 # 5 #
103
push(share->getSchemaName(arg));
106
push(share->getTableName(arg));
109
push(static_cast<int64_t>(share->getVersion()));
112
push(static_cast<uint64_t>(share->getTableCount()));
49
drizzled::TableShare::shared_ptr share;
51
while ((share= table_definition_cache_generator))
55
--replace_column 3 # 4 # 5 #
60
push(share->getSchemaName(arg));
63
push(share->getTableName(arg));
66
push(static_cast<int64_t>(share->getVersion()));
69
push(static_cast<uint64_t>(share->getTableCount()));