mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Remove message broker pool from context
This commit is contained in:
parent
46ef8617c0
commit
f97e6beb70
@ -335,7 +335,6 @@ struct ContextShared
|
|||||||
std::optional<BackgroundProcessingPool> background_move_pool; /// The thread pool for the background moves performed by the tables.
|
std::optional<BackgroundProcessingPool> background_move_pool; /// The thread pool for the background moves performed by the tables.
|
||||||
std::optional<BackgroundSchedulePool> schedule_pool; /// A thread pool that can run different jobs in background (used in replicated tables)
|
std::optional<BackgroundSchedulePool> schedule_pool; /// A thread pool that can run different jobs in background (used in replicated tables)
|
||||||
std::optional<BackgroundSchedulePool> distributed_schedule_pool; /// A thread pool that can run different jobs in background (used for distributed sends)
|
std::optional<BackgroundSchedulePool> distributed_schedule_pool; /// A thread pool that can run different jobs in background (used for distributed sends)
|
||||||
std::optional<BackgroundSchedulePool> message_broker_schedule_pool; /// A thread pool that can run different jobs in background (used in kafka streaming)
|
|
||||||
MultiVersion<Macros> macros; /// Substitutions extracted from config.
|
MultiVersion<Macros> macros; /// Substitutions extracted from config.
|
||||||
std::unique_ptr<DDLWorker> ddl_worker; /// Process ddl commands from zk.
|
std::unique_ptr<DDLWorker> ddl_worker; /// Process ddl commands from zk.
|
||||||
/// Rules for selecting the compression settings, depending on the size of the part.
|
/// Rules for selecting the compression settings, depending on the size of the part.
|
||||||
@ -438,7 +437,6 @@ struct ContextShared
|
|||||||
schedule_pool.reset();
|
schedule_pool.reset();
|
||||||
distributed_schedule_pool.reset();
|
distributed_schedule_pool.reset();
|
||||||
ddl_worker.reset();
|
ddl_worker.reset();
|
||||||
message_broker_schedule_pool.reset();
|
|
||||||
|
|
||||||
/// Stop trace collector if any
|
/// Stop trace collector if any
|
||||||
trace_collector.reset();
|
trace_collector.reset();
|
||||||
@ -1441,17 +1439,6 @@ BackgroundSchedulePool & Context::getDistributedSchedulePool()
|
|||||||
return *shared->distributed_schedule_pool;
|
return *shared->distributed_schedule_pool;
|
||||||
}
|
}
|
||||||
|
|
||||||
BackgroundSchedulePool & Context::getMessageBrokerSchedulePool()
|
|
||||||
{
|
|
||||||
auto lock = getLock();
|
|
||||||
if (!shared->message_broker_schedule_pool)
|
|
||||||
shared->message_broker_schedule_pool.emplace(
|
|
||||||
settings.background_message_broker_schedule_pool_size,
|
|
||||||
CurrentMetrics::BackgroundMessageBrokerSchedulePoolTask,
|
|
||||||
"BgMBSchPool");
|
|
||||||
return *shared->message_broker_schedule_pool;
|
|
||||||
}
|
|
||||||
|
|
||||||
void Context::setDDLWorker(std::unique_ptr<DDLWorker> ddl_worker)
|
void Context::setDDLWorker(std::unique_ptr<DDLWorker> ddl_worker)
|
||||||
{
|
{
|
||||||
auto lock = getLock();
|
auto lock = getLock();
|
||||||
|
@ -511,7 +511,6 @@ public:
|
|||||||
BackgroundProcessingPool & getBackgroundPool();
|
BackgroundProcessingPool & getBackgroundPool();
|
||||||
BackgroundProcessingPool & getBackgroundMovePool();
|
BackgroundProcessingPool & getBackgroundMovePool();
|
||||||
BackgroundSchedulePool & getSchedulePool();
|
BackgroundSchedulePool & getSchedulePool();
|
||||||
BackgroundSchedulePool & getMessageBrokerSchedulePool();
|
|
||||||
BackgroundSchedulePool & getDistributedSchedulePool();
|
BackgroundSchedulePool & getDistributedSchedulePool();
|
||||||
|
|
||||||
void setDDLWorker(std::unique_ptr<DDLWorker> ddl_worker);
|
void setDDLWorker(std::unique_ptr<DDLWorker> ddl_worker);
|
||||||
|
Loading…
Reference in New Issue
Block a user