Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: zhongxiaoyao.zxy <[email protected]>
  • Loading branch information
ShawnShawnYou committed Dec 24, 2024
1 parent 5bc7f48 commit b67a25d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/index/hnsw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,6 @@ HNSW::update_id(int64_t old_id, int64_t new_id) {
}

try {
std::unique_lock lock(rw_mutex_);

// note that the validation of old_id is handled within updateLabel.
std::reinterpret_pointer_cast<hnswlib::HierarchicalNSW>(alg_hnsw_)->updateLabel(old_id,
new_id);
Expand Down

0 comments on commit b67a25d

Please sign in to comment.