ext/hnswlib/src/hnswalg.h in hnswlib-0.5.0 vs ext/hnswlib/src/hnswalg.h in hnswlib-0.5.1

- old
+ new

@@ -1002,9 +1002,10 @@ if (isMarkedDeleted(existingInternalId)) { unmarkDeletedInternal(existingInternalId); } updatePoint(data_point, existingInternalId, 1.0); + return existingInternalId; } if (cur_element_count >= max_elements_) { throw std::runtime_error("The number of elements exceeds the specified limit");