CLICKHOUSE-3714 add function in Context

This commit is contained in:
VadimPE 2018-08-06 12:09:45 +03:00
parent d0f587bfc9
commit af9b288969
2 changed files with 3 additions and 1 deletions

View File

@ -1628,7 +1628,7 @@ const MergeTreeSettings & Context::getMergeTreeSettings()
}
void checkCanBeDropped(const String & database, const String & table, const size_t & size, const size_t & max_size_to_drop)
void Context::checkCanBeDropped(const String & database, const String & table, const size_t & size, const size_t & max_size_to_drop)
{
if (!max_size_to_drop || size <= max_size_to_drop)
return;

View File

@ -436,6 +436,8 @@ private:
/// Session will be closed after specified timeout.
void scheduleCloseSession(const SessionKey & key, std::chrono::steady_clock::duration timeout);
void checkCanBeDropped(const String & database, const String & table, const size_t & size, const size_t & max_size_to_drop);
};