Skip to content

Commit

Permalink
Fix some issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanhaoji2 committed Dec 29, 2024
1 parent 6f9282f commit 1216321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pq_flash_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ void PQFlashIndex<T, LabelT>::cache_bfs_levels(uint64_t num_nodes_to_cache, std:
uint64_t lvl = 1;
uint64_t prev_node_set_size = 0;
uint64_t current_count = 0;
bool finish_flag = false;
while (cur_level->size() != 0)
{
// swap prev_level and cur_level
Expand All @@ -438,7 +439,6 @@ void PQFlashIndex<T, LabelT>::cache_bfs_levels(uint64_t num_nodes_to_cache, std:
std::sort(nodes_to_expand.begin(), nodes_to_expand.end());

diskann::cout << "Level: " << lvl << std::flush;
bool finish_flag = false;

uint64_t BLOCK_SIZE = 1024;
uint64_t nblocks = DIV_ROUND_UP(nodes_to_expand.size(), BLOCK_SIZE);
Expand Down

0 comments on commit 1216321

Please sign in to comment.