Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
vsian committed Dec 13, 2024
1 parent eac8d7b commit bb9f2eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/storage/knn_index/knn_ivf/ivf_index_data_in_mem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class IVFIndexInMemT final : public IVFIndexInMem {

~IVFIndexInMemT() {
if (own_ivf_index_storage_) {
BaseMemIndex::DecreaseMemoryUsage(MemoryUsed());
DecreaseMemoryUsageBase(MemoryUsed());
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/storage/knn_index/sparse/abstract_bmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ BMPIndexInMem::~BMPIndexInMem() {
if (index != nullptr) {
delete index;
}
DecreaseMemoryUsage(mem_used);
DecreaseMemoryUsageBase(mem_used);
}
},
bmp_);
Expand Down Expand Up @@ -134,7 +134,7 @@ void BMPIndexInMem::AddDocs(SizeT block_offset, BlockColumnEntry *block_column_e
MemIndexInserterIter<SparseRefT> 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));
}
},
Expand Down

0 comments on commit bb9f2eb

Please sign in to comment.