Skip to content

Commit

Permalink
[BugFix] fix cloud native index memtable memory calculation (backport #…
Browse files Browse the repository at this point in the history
…54464) (#54468)

Co-authored-by: Yixin Luo <[email protected]>
  • Loading branch information
mergify[bot] and luohaha authored Dec 27, 2024
1 parent 8352ee9 commit 412ed4b
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 412ed4b

Please sign in to comment.