diff --git a/src/storage/hummock_sdk/src/version.rs b/src/storage/hummock_sdk/src/version.rs index 7f4b4dafb1bf7..f0bd4582752be 100644 --- a/src/storage/hummock_sdk/src/version.rs +++ b/src/storage/hummock_sdk/src/version.rs @@ -271,6 +271,21 @@ impl HummockVersion { .values() .map(|table_watermark| table_watermark.estimated_encode_len()) .sum::() + + self + .table_change_log + .values() + .map(|c| { + c.0.iter() + .map(|l| { + l.old_value + .iter() + .chain(l.new_value.iter()) + .map(|s| s.estimated_encode_len()) + .sum::() + }) + .sum::() + }) + .sum::() } }