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