From cc2e0dc5d8b0bf4be143f7171e40bd40926efe21 Mon Sep 17 00:00:00 2001 From: "Raphael S. Carvalho" Date: Sat, 3 Oct 2015 16:56:00 -0300 Subject: [PATCH] sstables: implement function to get sstable level Signed-off-by: Raphael S. Carvalho --- sstables/sstables.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sstables/sstables.hh b/sstables/sstables.hh index 2e441e200d..17db133857 100644 --- a/sstables/sstables.hh +++ b/sstables/sstables.hh @@ -495,6 +495,10 @@ public: return s; } + uint32_t get_sstable_level() const { + return get_stats_metadata().sstable_level; + } + // Allow the test cases from sstable_test.cc to test private methods. We use // a placeholder to avoid cluttering this class too much. The sstable_test class // will then re-export as public every method it needs.