File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -161,11 +161,11 @@ class HierarchicalNSW : public AlgorithmInterface<dist_t> {
161
161
}
162
162
163
163
164
- inline std::mutex& getLabelOpMutex (labeltype label) const {
164
+ /* inline std::mutex& getLabelOpMutex(labeltype label) const {
165
165
// calculate hash
166
166
size_t lock_id = label & (MAX_LABEL_OPERATION_LOCKS - 1);
167
167
return label_op_locks_[lock_id];
168
- }
168
+ }*/
169
169
170
170
171
171
inline labeltype getExternalLabel (tableint internal_id) const {
@@ -881,7 +881,7 @@ class HierarchicalNSW : public AlgorithmInterface<dist_t> {
881
881
throw std::runtime_error (" Label not found" );
882
882
}
883
883
tableint internalId = search->second ;
884
- lock_table.unlock ();
884
+ // lock_table.unlock();
885
885
886
886
char * data_ptrv = getDataByInternalId (internalId);
887
887
size_t dim = *((size_t *) dist_func_param_);
@@ -908,7 +908,7 @@ class HierarchicalNSW : public AlgorithmInterface<dist_t> {
908
908
throw std::runtime_error (" Label not found" );
909
909
}
910
910
tableint internalId = search->second ;
911
- lock_table.unlock ();
911
+ // lock_table.unlock();
912
912
913
913
markDeletedInternal (internalId);
914
914
}
@@ -950,7 +950,7 @@ class HierarchicalNSW : public AlgorithmInterface<dist_t> {
950
950
throw std::runtime_error (" Label not found" );
951
951
}
952
952
tableint internalId = search->second ;
953
- lock_table.unlock ();
953
+ // lock_table.unlock();
954
954
955
955
unmarkDeletedInternal (internalId);
956
956
}
You can’t perform that action at this time.
0 commit comments