From bcb1fcd402064899ecbe49c08b355e269da59c14 Mon Sep 17 00:00:00 2001 From: Benny Halevy Date: Thu, 27 Dec 2018 11:30:11 +0200 Subject: [PATCH] sstables: mc: write_liveness_info and write_collection should update tombstone_histogram Fixes #4033 Signed-off-by: Benny Halevy --- sstables/mc/writer.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sstables/mc/writer.cc b/sstables/mc/writer.cc index 8c9efc2f12..9e57462b22 100644 --- a/sstables/mc/writer.cc +++ b/sstables/mc/writer.cc @@ -1024,6 +1024,7 @@ void writer::write_liveness_info(bytes_ostream& writer, const row_marker& marker auto write_expiring_liveness_info = [this, &writer] (uint32_t ttl, uint64_t ldt) { _c_stats.update_ttl(ttl); _c_stats.update_local_deletion_time(ldt); + _c_stats.tombstone_histogram.update(ldt); write_delta_ttl(writer, ttl); write_delta_local_deletion_time(writer, ldt); }; @@ -1048,6 +1049,7 @@ void writer::write_collection(bytes_ostream& writer, const column_definition& cd if (mview.tomb) { _c_stats.update_timestamp(dt.marked_for_delete_at); _c_stats.update_local_deletion_time(dt.local_deletion_time); + _c_stats.tombstone_histogram.update(dt.local_deletion_time); } }