1 | #pragma once |
2 | |
3 | #include <Core/Types.h> |
4 | #include <map> |
5 | |
6 | |
7 | namespace DB |
8 | { |
9 | |
10 | struct MergeTreeMutationStatus |
11 | { |
12 | String id; |
13 | String command; |
14 | time_t create_time = 0; |
15 | std::map<String, Int64> block_numbers; |
16 | |
17 | /// Parts that should be mutated/merged or otherwise moved to Obsolete state for this mutation to complete. |
18 | Names parts_to_do_names; |
19 | |
20 | /// If the mutation is done. Note that in case of ReplicatedMergeTree parts_to_do == 0 doesn't imply is_done == true. |
21 | bool is_done = false; |
22 | |
23 | String latest_failed_part; |
24 | time_t latest_fail_time = 0; |
25 | String latest_fail_reason; |
26 | }; |
27 | |
28 | } |
29 | |