From e1c7209258dbd8235648b802aee77804f5bc1591 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Sun, 6 Sep 2015 14:29:54 +0300 Subject: [PATCH] sstables: make sstable::filename() const --- sstables/sstables.cc | 2 +- sstables/sstables.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sstables/sstables.cc b/sstables/sstables.cc index 40a4f932e7..e8bf0323a6 100644 --- a/sstables/sstables.cc +++ b/sstables/sstables.cc @@ -1348,7 +1348,7 @@ const bool sstable::has_component(component_type f) { return _components.count(f); } -const sstring sstable::filename(component_type f) { +const sstring sstable::filename(component_type f) const { return filename(_dir, _ks, _cf, _version, _generation, _format, f); } diff --git a/sstables/sstables.hh b/sstables/sstables.hh index 5d17738fc2..c263a57e66 100644 --- a/sstables/sstables.hh +++ b/sstables/sstables.hh @@ -296,7 +296,7 @@ private: const bool has_component(component_type f); - const sstring filename(component_type f); + const sstring filename(component_type f) const; const sstring temporary_filename(component_type f); template