mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Merge pull request #49918 from ClickHouse/remove_unused_code
Remove unused code
This commit is contained in:
commit
3d26232cc0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user