MCPcopy Create free account
hub / github.com/ByConity/ByConity / empty

Method empty

src/Databases/MySQL/DatabaseMySQL.cpp:69–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69bool DatabaseMySQL::empty() const
70{
71 std::lock_guard<std::mutex> lock(mutex);
72
73 fetchTablesIntoLocalCache(getContext());
74
75 if (local_tables_cache.empty())
76 return true;
77
78 for (const auto & [table_name, storage_info] : local_tables_cache)
79 if (!remove_or_detach_tables.count(table_name))
80 return false;
81
82 return true;
83}
84
85DatabaseTablesIteratorPtr DatabaseMySQL::getTablesIterator(ContextPtr local_context, const FilterByNameFunction & filter_by_table_name)
86{

Callers 15

tryToExecuteQueryFunction · 0.45
cleanOutdatedTablesFunction · 0.45
iterateMethod · 0.45
initializeMethod · 0.45
shouldSyncTableMethod · 0.45
runResyncTableTaskMethod · 0.45
transactionMethod · 0.45
checkSettingsFunction · 0.45
shouldSyncTableMethod · 0.45
shouldSkipDDLCmdMethod · 0.45

Calls 1

countMethod · 0.45

Tested by

no test coverage detected