diff options
author | Alex Auvolat <alex@adnab.me> | 2023-11-14 12:48:38 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-11-14 12:48:38 +0100 |
commit | 8e292e06b3fde1d3b5b019a26eabd4f0d9ac22c3 (patch) | |
tree | c4d252eaf122d9dd583cb755dffeb7d776ae4b66 /src/api/k2v/index.rs | |
parent | 9a491fa1372a23e91c793ee1d2b313607752826a (diff) | |
download | garage-8e292e06b3fde1d3b5b019a26eabd4f0d9ac22c3.tar.gz garage-8e292e06b3fde1d3b5b019a26eabd4f0d9ac22c3.zip |
layout: some refactoring of nongateway nodes
Diffstat (limited to 'src/api/k2v/index.rs')
-rw-r--r-- | src/api/k2v/index.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/api/k2v/index.rs b/src/api/k2v/index.rs index 3c2f51a9..c189232a 100644 --- a/src/api/k2v/index.rs +++ b/src/api/k2v/index.rs @@ -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, |