mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Merge pull request #62127 from ClickHouse/y2k_system_replicas_2
More than 255 replicas in ReplicatedTableStatus
This commit is contained in:
commit
98ec4d7a70
@ -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.
|
||||
|
@ -7022,7 +7022,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