ClickHouse/src/Databases/DatabaseReplicatedWorker.h

27 lines
505 B
C++
Raw Normal View History

2020-11-27 14:04:03 +00:00
#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;
};
}