mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
27 lines
505 B
C++
27 lines
505 B
C++
|
#pragma once
|
||
|
#include <Interpreters/DDLWorker.h>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
class DatabaseReplicated;
|
||
|
|
||
|
class DatabaseReplicatedDDLWorker : public DDLWorker
|
||
|
{
|
||
|
public:
|
||
|
DatabaseReplicatedDDLWorker(DatabaseReplicated * db, const Context & context_);
|
||
|
|
||
|
String enqueueQuery(DDLLogEntry & entry) override;
|
||
|
|
||
|
private:
|
||
|
void initialize() override;
|
||
|
|
||
|
DDLTaskPtr initAndCheckTask(const String & entry_name, String & out_reason, const ZooKeeperPtr & zookeeper) override;
|
||
|
|
||
|
DatabaseReplicated * database;
|
||
|
|
||
|
};
|
||
|
|
||
|
}
|