Skip to content

Commit 8aee68f

Browse files
committed
fixed build issues
1 parent 736ee7f commit 8aee68f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

hnswlib/hnswalg.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ class HierarchicalNSW : public AlgorithmInterface<dist_t> {
161161
}
162162

163163

164-
inline std::mutex& getLabelOpMutex(labeltype label) const {
164+
/* inline std::mutex& getLabelOpMutex(labeltype label) const {
165165
// calculate hash
166166
size_t lock_id = label & (MAX_LABEL_OPERATION_LOCKS - 1);
167167
return label_op_locks_[lock_id];
168-
}
168+
}*/
169169

170170

171171
inline labeltype getExternalLabel(tableint internal_id) const {
@@ -881,7 +881,7 @@ class HierarchicalNSW : public AlgorithmInterface<dist_t> {
881881
throw std::runtime_error("Label not found");
882882
}
883883
tableint internalId = search->second;
884-
lock_table.unlock();
884+
// lock_table.unlock();
885885

886886
char* data_ptrv = getDataByInternalId(internalId);
887887
size_t dim = *((size_t *) dist_func_param_);
@@ -908,7 +908,7 @@ class HierarchicalNSW : public AlgorithmInterface<dist_t> {
908908
throw std::runtime_error("Label not found");
909909
}
910910
tableint internalId = search->second;
911-
lock_table.unlock();
911+
// lock_table.unlock();
912912

913913
markDeletedInternal(internalId);
914914
}
@@ -950,7 +950,7 @@ class HierarchicalNSW : public AlgorithmInterface<dist_t> {
950950
throw std::runtime_error("Label not found");
951951
}
952952
tableint internalId = search->second;
953-
lock_table.unlock();
953+
// lock_table.unlock();
954954

955955
unmarkDeletedInternal(internalId);
956956
}

0 commit comments

Comments
 (0)