mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
CLICKHOUSE-3714 add function in Context
This commit is contained in:
parent
d0f587bfc9
commit
af9b288969
@ -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;
|
||||
|
@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user