Skip to content

Commit 05702a5

Browse files
committed
Merge remote-tracking branch 'origin/main' into ib/dynamic_ivf
2 parents 44eb6d8 + 6665aa5 commit 05702a5

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/skywalking-eyes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
runs-on: ubuntu-24.04
3535
steps:
3636
- name: "Checkout code"
37-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
37+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
3838
- name: "Run check"
3939
uses: apache/skywalking-eyes/header@61275cc80d0798a405cb070f7d3a8aaf7cf2c2c1 # v0.8.0
4040
with:

include/svs/index/vamana/dynamic_search_buffer.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,16 @@ template <typename Idx, typename Cmp = std::less<>> class MutableBuffer {
498498
}
499499
}
500500

501+
// TODO: Switch over to using iterators for the return values to avoid this.
502+
// Maintain best_unvisited_ invariant
503+
// cleanup() and std::sort() may invalidate best_unvisited_.
504+
// so, have to lookup the next unvisited from scratch.
505+
for (best_unvisited_ = 0; best_unvisited_ < roi_end_; ++best_unvisited_) {
506+
if (!candidates_[best_unvisited_].visited()) {
507+
break;
508+
}
509+
}
510+
501511
// Check if invariant 6 is active.
502512
// If so, drop invalid elements off the end until a valid element is found.
503513
if (slack() == 0) {

0 commit comments

Comments
 (0)