Skip to content

Commit

Permalink
[BugFix] fix cloud native index memtable memory calculation
Browse files Browse the repository at this point in the history
Signed-off-by: luohaha <[email protected]>
  • Loading branch information
luohaha committed Dec 27, 2024
1 parent a105bac commit 1556dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/storage/lake/persistent_index_memtable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Status PersistentIndexMemtable::get(const Slice* keys, IndexValue* values, const
}

size_t PersistentIndexMemtable::memory_usage() const {
return _map.bytes_used();
return _keys_size + _map.size() * sizeof(IndexValueWithVer);
}

Status PersistentIndexMemtable::flush(WritableFile* wf, uint64_t* filesize) {
Expand Down

0 comments on commit 1556dae

Please sign in to comment.