Skip to content

Commit 5ad84a1

Browse files
author
Yury Malkov
committed
fix missing deletion initialization
1 parent bfada0a commit 5ad84a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hnswlib/hnswalg.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,7 @@ namespace hnswlib {
797797
auto search = label_lookup_.find(label);
798798
if (search != label_lookup_.end()) {
799799
std::unique_lock <std::mutex> lock_el(link_list_locks_[search->second]);
800+
has_deletions_ = true;
800801
markDeletedInternal(search->second);
801802
}
802803
label_lookup_[label] = cur_c;

0 commit comments

Comments
 (0)