From ec6c540c30ceaed55016cd2b6a4677bae80da618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Botond=20D=C3=A9nes?= Date: Thu, 26 Nov 2020 16:49:04 +0200 Subject: [PATCH] sstables: stats: remove now unused sstable_partition_reads counter --- sstables/sstables.cc | 2 -- sstables/stats.hh | 5 ----- 2 files changed, 7 deletions(-) diff --git a/sstables/sstables.cc b/sstables/sstables.cc index fe0f83e2cf..56c704aadc 100644 --- a/sstables/sstables.cc +++ b/sstables/sstables.cc @@ -2840,8 +2840,6 @@ future<> init_metrics() { sm::description("Number of single partition flat mutation reads")), sm::make_derive("range_partition_reads", [] { return sstables_stats::get_shard_stats().range_partition_reads; }, sm::description("Number of partition range flat mutation reads")), - sm::make_derive("sstable_partition_reads", [] { return sstables_stats::get_shard_stats().sstable_partition_reads; }, - sm::description("Number of whole sstable flat mutation reads")), sm::make_derive("partition_reads", [] { return sstables_stats::get_shard_stats().partition_reads; }, sm::description("Number of partitions read")), sm::make_derive("partition_seeks", [] { return sstables_stats::get_shard_stats().partition_seeks; }, diff --git a/sstables/stats.hh b/sstables/stats.hh index d7f1845ea1..6b41f5aabe 100644 --- a/sstables/stats.hh +++ b/sstables/stats.hh @@ -36,7 +36,6 @@ class sstables_stats { uint64_t cell_tombstone_writes = 0; uint64_t single_partition_reads = 0; uint64_t range_partition_reads = 0; - uint64_t sstable_partition_reads = 0; uint64_t partition_reads = 0; uint64_t partition_seeks = 0; uint64_t row_reads = 0; @@ -87,10 +86,6 @@ public: ++_stats.range_partition_reads; } - inline void on_sstable_partition_read() { - ++_stats.sstable_partition_reads; - } - inline void on_partition_read() { ++_stats.partition_reads; }