Skip to content

Commit

Permalink
Fixing dummy map file name to be consistent with PQFlashIndex and del…
Browse files Browse the repository at this point in the history
…eted unnecessary files
  • Loading branch information
gopal-msr committed Oct 3, 2024
1 parent fd93a04 commit 253ed7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/disk_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ int build_disk_index(const char *dataFilePath, const char *indexFilePath, const
std::string mem_univ_label_file = mem_index_path + "_universal_label.txt";
std::string disk_univ_label_file = disk_index_path + "_universal_label.txt";
std::string disk_labels_int_map_file = disk_index_path + "_labels_map.txt";
std::string dummy_remap_file = disk_index_path + "_dummy_remap.txt"; // remap will be used if we break-up points of
std::string dummy_remap_file = disk_index_path + "_dummy_map.txt"; // remap will be used if we break-up points of
// high label-density to create copies

std::string sample_base_prefix = index_prefix_path + "_sample";
Expand Down Expand Up @@ -1274,7 +1274,6 @@ int build_disk_index(const char *dataFilePath, const char *indexFilePath, const
augmented_labels_file = index_prefix_path + "_augmented_labels.txt";
if (filter_threshold != 0)
{
dummy_remap_file = index_prefix_path + "_dummy_remap.txt";
breakup_dense_points<T>(data_file_to_use, labels_file_to_use, filter_threshold, augmented_data_file,
augmented_labels_file,
dummy_remap_file); // RKNOTE: This has large memory footprint,
Expand Down Expand Up @@ -1365,6 +1364,8 @@ int build_disk_index(const char *dataFilePath, const char *indexFilePath, const
if (created_temp_file_for_processed_data)
std::remove(prepped_base.c_str());
std::remove(mem_index_path.c_str());
std::remove((mem_index_path + ".data").c_str());
std::remove((mem_index_path + ".tags").c_str());
if (use_disk_pq)
std::remove(disk_pq_compressed_vectors_path.c_str());

Expand Down

0 comments on commit 253ed7f

Please sign in to comment.