Merge pull request #49918 from ClickHouse/remove_unused_code

Remove unused code
This commit is contained in:
Alexander Tokmakov 2023-05-16 18:53:49 +03:00 committed by GitHub
commit 3d26232cc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,30 +36,6 @@ public:
void start();
void stop();
/// Don't create more than one instance of this object simultaneously.
struct TemporarilyStop : private boost::noncopyable
{
ReplicatedMergeTreePartCheckThread * parent;
explicit TemporarilyStop(ReplicatedMergeTreePartCheckThread * parent_) : parent(parent_)
{
parent->stop();
}
TemporarilyStop(TemporarilyStop && old) noexcept : parent(old.parent)
{
old.parent = nullptr;
}
~TemporarilyStop()
{
if (parent)
parent->start();
}
};
TemporarilyStop temporarilyStop() { return TemporarilyStop(this); }
/// Add a part (for which there are suspicions that it is missing, damaged or not needed) in the queue for check.
/// delay_to_check_seconds - check no sooner than the specified number of seconds.
void enqueuePart(const String & name, time_t delay_to_check_seconds = 0);