2018-06-07 13:28:39 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Core/Types.h>
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
struct MergeTreeMutationStatus
|
|
|
|
{
|
|
|
|
String id;
|
|
|
|
String command;
|
|
|
|
time_t create_time = 0;
|
|
|
|
std::map<String, Int64> block_numbers;
|
2018-06-18 12:17:46 +00:00
|
|
|
|
|
|
|
/// A number of parts that should be mutated/merged or otherwise moved to Obsolete state for this mutation to complete.
|
|
|
|
Int64 parts_to_do = 0;
|
2018-06-21 13:27:36 +00:00
|
|
|
|
|
|
|
/// If the mutation is done. Note that in case of ReplicatedMergeTree parts_to_do == 0 doesn't imply is_done == true.
|
|
|
|
bool is_done = false;
|
2019-01-10 17:06:27 +00:00
|
|
|
|
|
|
|
String latest_failed_part;
|
|
|
|
time_t latest_fail_time = 0;
|
|
|
|
String latest_fail_reason;
|
2018-06-07 13:28:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|