From a63a6815723109d60d39d12d53d03a81c2238ec8 Mon Sep 17 00:00:00 2001 From: Robert Escriva Date: Thu, 26 Mar 2026 16:55:03 -0700 Subject: [PATCH] Revert "[ENH]: Enable integrity checking during hnsw load" --- Cargo.lock | 2 +- src/bindings.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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; }