diff --git a/src/storage/knn_index/knn_ivf/ivf_index_data_in_mem.cpp b/src/storage/knn_index/knn_ivf/ivf_index_data_in_mem.cpp index e73982a4f6..7328a637c1 100644 --- a/src/storage/knn_index/knn_ivf/ivf_index_data_in_mem.cpp +++ b/src/storage/knn_index/knn_ivf/ivf_index_data_in_mem.cpp @@ -112,7 +112,7 @@ class IVFIndexInMemT final : public IVFIndexInMem { ~IVFIndexInMemT() { if (own_ivf_index_storage_) { - BaseMemIndex::DecreaseMemoryUsage(MemoryUsed()); + DecreaseMemoryUsageBase(MemoryUsed()); } } diff --git a/src/storage/knn_index/sparse/abstract_bmp.cpp b/src/storage/knn_index/sparse/abstract_bmp.cpp index 9ec2097d20..52c434c6cb 100644 --- a/src/storage/knn_index/sparse/abstract_bmp.cpp +++ b/src/storage/knn_index/sparse/abstract_bmp.cpp @@ -101,7 +101,7 @@ BMPIndexInMem::~BMPIndexInMem() { if (index != nullptr) { delete index; } - DecreaseMemoryUsage(mem_used); + DecreaseMemoryUsageBase(mem_used); } }, bmp_); @@ -134,7 +134,7 @@ void BMPIndexInMem::AddDocs(SizeT block_offset, BlockColumnEntry *block_column_e MemIndexInserterIter iter(block_offset, block_column_entry, buffer_mgr, row_offset, row_count); index->AddDocs(std::move(iter)); SizeT mem_after = index->MemoryUsage(); - AddMemUsed(mem_after - mem_before); + IncreaseMemoryUsageBase(mem_after - mem_before); LOG_INFO(fmt::format("before : {} -> after : {}, add mem_used : {}", mem_before, mem_after, mem_after - mem_before)); } },