Skip to content

Commit 1216321

Browse files
committed
Fix some issue
1 parent 6f9282f commit 1216321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pq_flash_index.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ void PQFlashIndex<T, LabelT>::cache_bfs_levels(uint64_t num_nodes_to_cache, std:
413413
uint64_t lvl = 1;
414414
uint64_t prev_node_set_size = 0;
415415
uint64_t current_count = 0;
416+
bool finish_flag = false;
416417
while (cur_level->size() != 0)
417418
{
418419
// swap prev_level and cur_level
@@ -438,7 +439,6 @@ void PQFlashIndex<T, LabelT>::cache_bfs_levels(uint64_t num_nodes_to_cache, std:
438439
std::sort(nodes_to_expand.begin(), nodes_to_expand.end());
439440

440441
diskann::cout << "Level: " << lvl << std::flush;
441-
bool finish_flag = false;
442442

443443
uint64_t BLOCK_SIZE = 1024;
444444
uint64_t nblocks = DIV_ROUND_UP(nodes_to_expand.size(), BLOCK_SIZE);

0 commit comments

Comments
 (0)