mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
Remove strange method
This commit is contained in:
parent
5700e5e46d
commit
598532b582
@ -31,7 +31,6 @@ using Undo = std::function<void()>;
|
|||||||
|
|
||||||
struct TestKeeperRequest : virtual Request
|
struct TestKeeperRequest : virtual Request
|
||||||
{
|
{
|
||||||
virtual bool isMutable() const { return false; }
|
|
||||||
virtual ResponsePtr createResponse() const = 0;
|
virtual ResponsePtr createResponse() const = 0;
|
||||||
virtual std::pair<ResponsePtr, Undo> process(TestKeeper::Container & container, int64_t zxid) const = 0;
|
virtual std::pair<ResponsePtr, Undo> process(TestKeeper::Container & container, int64_t zxid) const = 0;
|
||||||
virtual void processWatches(TestKeeper::Watches & /*watches*/, TestKeeper::Watches & /*list_watches*/) const {}
|
virtual void processWatches(TestKeeper::Watches & /*watches*/, TestKeeper::Watches & /*list_watches*/) const {}
|
||||||
@ -85,7 +84,6 @@ struct TestKeeperRemoveRequest final : RemoveRequest, TestKeeperRequest
|
|||||||
{
|
{
|
||||||
TestKeeperRemoveRequest() = default;
|
TestKeeperRemoveRequest() = default;
|
||||||
explicit TestKeeperRemoveRequest(const RemoveRequest & base) : RemoveRequest(base) {}
|
explicit TestKeeperRemoveRequest(const RemoveRequest & base) : RemoveRequest(base) {}
|
||||||
bool isMutable() const override { return true; }
|
|
||||||
ResponsePtr createResponse() const override;
|
ResponsePtr createResponse() const override;
|
||||||
std::pair<ResponsePtr, Undo> process(TestKeeper::Container & container, int64_t zxid) const override;
|
std::pair<ResponsePtr, Undo> process(TestKeeper::Container & container, int64_t zxid) const override;
|
||||||
|
|
||||||
@ -112,7 +110,6 @@ struct TestKeeperSetRequest final : SetRequest, TestKeeperRequest
|
|||||||
{
|
{
|
||||||
TestKeeperSetRequest() = default;
|
TestKeeperSetRequest() = default;
|
||||||
explicit TestKeeperSetRequest(const SetRequest & base) : SetRequest(base) {}
|
explicit TestKeeperSetRequest(const SetRequest & base) : SetRequest(base) {}
|
||||||
bool isMutable() const override { return true; }
|
|
||||||
ResponsePtr createResponse() const override;
|
ResponsePtr createResponse() const override;
|
||||||
std::pair<ResponsePtr, Undo> process(TestKeeper::Container & container, int64_t zxid) const override;
|
std::pair<ResponsePtr, Undo> process(TestKeeper::Container & container, int64_t zxid) const override;
|
||||||
|
|
||||||
|
@ -34,7 +34,6 @@ struct TestKeeperStorageRequest
|
|||||||
TestKeeperStorageRequest(const Coordination::ZooKeeperRequestPtr & zk_request_)
|
TestKeeperStorageRequest(const Coordination::ZooKeeperRequestPtr & zk_request_)
|
||||||
: zk_request(zk_request_)
|
: zk_request(zk_request_)
|
||||||
{}
|
{}
|
||||||
virtual bool isMutable() const { return false; }
|
|
||||||
virtual std::pair<Coordination::ZooKeeperResponsePtr, Undo> process(TestKeeperStorage::Container & container, int64_t zxid) const = 0;
|
virtual std::pair<Coordination::ZooKeeperResponsePtr, Undo> process(TestKeeperStorage::Container & container, int64_t zxid) const = 0;
|
||||||
virtual ~TestKeeperStorageRequest() {}
|
virtual ~TestKeeperStorageRequest() {}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user