diff --git a/Cargo.lock b/Cargo.lock index 5485dd65a..648b4f3d1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -101,7 +101,7 @@ dependencies = [ [[package]] name = "hnswlib" -version = "0.8.2" +version = "0.8.1" dependencies = [ "cc", "rand", diff --git a/src/bindings.cpp b/src/bindings.cpp index d7865742c..97069bf6d 100644 --- a/src/bindings.cpp +++ b/src/bindings.cpp @@ -94,8 +94,8 @@ class Index throw std::runtime_error("Index already inited"); } appr_alg = new hnswlib::HierarchicalNSW(l2space, path_to_index, false, max_elements, allow_replace_deleted, normalize, is_persistent_index); - - appr_alg->checkIntegrity(); + // TODO(rescrv,sicheng): check integrity + // appr_alg->checkIntegrity(); index_inited = true; } @@ -120,8 +120,8 @@ class Index appr_alg = new hnswlib::HierarchicalNSW(l2space, header_str.c_str(), data_str.c_str(), index_str.c_str(), deleted_str.c_str(), false, max_elements, allow_replace_deleted, normalize); - - appr_alg->checkIntegrity(); + // TODO(rescrv,sicheng): check integrity + // appr_alg->checkIntegrity(); index_inited = true; }