layout: some refactoring of nongateway nodes

This commit is contained in:
Alex Auvolat
2023-11-14 12:48:38 +01:00
parent 9a491fa137
commit 8e292e06b3
5 changed files with 95 additions and 61 deletions
+5 -2
View File
@@ -25,8 +25,11 @@ pub async fn handle_read_index(
) -> Result<Response<Body>, Error> {
let reverse = reverse.unwrap_or(false);
// TODO: not only current
let node_id_vec = garage.system.cluster_layout().current().node_ids().to_vec();
let node_id_vec = garage
.system
.cluster_layout()
.all_nongateway_nodes()
.into_owned();
let (partition_keys, more, next_start) = read_range(
&garage.k2v.counter_table.table,