From fdd1e945431bac26a1cefd059e42081ac5ddd452 Mon Sep 17 00:00:00 2001 From: Sanhaoji2 Date: Tue, 24 Dec 2024 19:37:03 +0800 Subject: [PATCH 1/2] Fix logging issue --- src/pq_flash_index.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pq_flash_index.cpp b/src/pq_flash_index.cpp index 69386c7db..bfcc65487 100644 --- a/src/pq_flash_index.cpp +++ b/src/pq_flash_index.cpp @@ -1232,7 +1232,7 @@ int PQFlashIndex::load_from_separate_paths(uint32_t num_threads, cons delete[] norm_val; } - _table_stats.tag_memory_usage = _table_stats.node_mem_usage + _table_stats.total_mem_usage = _table_stats.node_mem_usage + _table_stats.graph_mem_usage + _table_stats.label_mem_usage + _table_stats.tag_memory_usage; From b71289d9a484f94a557c079013a6a91e3872d39c Mon Sep 17 00:00:00 2001 From: Sanhaoji2 Date: Wed, 25 Dec 2024 14:22:14 +0800 Subject: [PATCH 2/2] Fix logging issue --- src/index.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.cpp b/src/index.cpp index 67254fff1..e6be778c2 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -659,7 +659,7 @@ void Index::load(const char *filename, uint32_t num_threads, ui reposition_frozen_point_to_end(); - _table_stats.tag_memory_usage = _table_stats.node_mem_usage + _table_stats.total_mem_usage = _table_stats.node_mem_usage + _table_stats.graph_mem_usage + _table_stats.label_mem_usage + _table_stats.tag_memory_usage;