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 d09c7e2 commit f4b2998
Showing 1 changed file with 2 additions and 2 deletions.
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 f4b2998

Please sign in to comment.