Skip to content

Commit

Permalink
chore(bors): merge pull request #426
Browse files Browse the repository at this point in the history
426: feat(supportability): update etcd pagination fetch method r=tiagolobocastro a=Abhinandan-Purkait

#### Changes in the PR.

- Updates the control-plane submodule.
- Uses the `get_values_paged_all` method to compute range.

Co-authored-by: Abhinandan Purkait <purkaitabhinandan@gmail.com>
  • Loading branch information
mayastor-bors and Abhinandan-Purkait committed Mar 1, 2024
2 parents 0eacd94 + 92b7d9d commit 99dba92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dependencies/control-plane
Submodule control-plane updated 128 files
5 changes: 4 additions & 1 deletion k8s/supportability/src/collect/persistent_store/etcd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ impl EtcdStore {
let mut first = true;
let mut dump;
loop {
dump = self.etcd.get_values_paged(prefix, ETCD_PAGED_LIMIT).await?;
dump = self
.etcd
.get_values_paged_all(prefix, ETCD_PAGED_LIMIT)
.await?;
if !first && dump.get(0).is_some() {
dump.remove(0);
}
Expand Down

0 comments on commit 99dba92

Please sign in to comment.