fix: partition tree metric should the delta (#7307)

Signed-off-by: evenyag <realevenyag@gmail.com>
This commit is contained in:
Yingwen
2025-11-27 11:49:02 +08:00
committed by GitHub
parent 5472bdfc0f
commit b5cbc35a0d

View File

@@ -103,7 +103,7 @@ impl KeyDictBuilder {
self.key_bytes_in_index += full_primary_key.len() + sparse_key_len;
// Adds key size of index to the metrics.
MEMTABLE_DICT_BYTES.add(self.key_bytes_in_index as i64);
MEMTABLE_DICT_BYTES.add((full_primary_key.len() + sparse_key_len) as i64);
pk_index
}