mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
More than 255 replicas in ReplicatedTableStatus
This commit is contained in:
parent
c297e72a4d
commit
170f50e095
@ -24,8 +24,8 @@ struct ReplicatedTableStatus
|
||||
UInt64 log_max_index;
|
||||
UInt64 log_pointer;
|
||||
UInt64 absolute_delay;
|
||||
UInt8 total_replicas;
|
||||
UInt8 active_replicas;
|
||||
UInt32 total_replicas;
|
||||
UInt32 active_replicas;
|
||||
UInt64 lost_part_count;
|
||||
String last_queue_update_exception;
|
||||
/// If the error has happened fetching the info from ZooKeeper, this field will be set.
|
||||
|
@ -7003,7 +7003,7 @@ void StorageReplicatedMergeTree::getStatus(ReplicatedTableStatus & res, bool wit
|
||||
}
|
||||
|
||||
res.log_pointer = log_pointer_str.empty() ? 0 : parse<UInt64>(log_pointer_str);
|
||||
res.total_replicas = all_replicas.size();
|
||||
res.total_replicas = UInt32(all_replicas.size());
|
||||
if (get_result[1].error == Coordination::Error::ZNONODE)
|
||||
res.lost_part_count = 0;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user