From 532ab2fbfef8f1aa53e9575ca0837ada0e6d7e9a Mon Sep 17 00:00:00 2001 From: Gopal Srinivasa Date: Tue, 1 Oct 2024 13:34:36 +0530 Subject: [PATCH] Save number of points loaded in the label file for checking later --- src/in_mem_filter_store.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/in_mem_filter_store.cpp b/src/in_mem_filter_store.cpp index 67e26b6b7..fb0f0018a 100644 --- a/src/in_mem_filter_store.cpp +++ b/src/in_mem_filter_store.cpp @@ -193,6 +193,8 @@ namespace diskann { get_label_file_metadata(label_file_content, num_pts_in_label_file, num_total_labels); + _num_points = num_pts_in_label_file; + _pts_to_label_offsets = new uint32_t[num_pts_in_label_file]; _pts_to_label_counts = new uint32_t[num_pts_in_label_file]; _pts_to_labels = new LabelT[num_total_labels];