We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f55fe4 commit 1492527Copy full SHA for 1492527
TESTS.md
hnswlib/hnswalg.h
@@ -987,11 +987,15 @@ namespace hnswlib {
987
auto search = label_lookup_.find(label);
988
if (search != label_lookup_.end()) {
989
tableint existingInternalId = search->second;
990
-
991
templock_curr.unlock();
992
993
std::unique_lock <std::mutex> lock_el_update(link_list_update_locks_[(existingInternalId & (max_update_element_locks - 1))]);
+
994
+ if (isMarkedDeleted(existingInternalId)) {
995
+ unmarkDeletedInternal(existingInternalId);
996
+ }
997
updatePoint(data_point, existingInternalId, 1.0);
998
999
return existingInternalId;
1000
}
1001
0 commit comments