sstables: Rename filename($component) calls to ${component}_filename()

There's a generic sstable::filename(component_type) method that returns
a file name for the given component. For "popular" components, namely
TOC, Data and Index there are dedicated sstable methods to get their
names. Fix existing callers of the generic method to use the former.
It's shorter, nicer and makes further patching simpler.

Signed-off-by: Pavel Emelyanov <xemul@scylladb.com>
This commit is contained in:
Pavel Emelyanov
2025-03-06 15:15:49 +03:00
parent e6898a8854
commit dcc9167734
3 changed files with 7 additions and 7 deletions

View File

@@ -155,7 +155,7 @@ public:
void rewrite_toc_without_component(component_type component) {
SCYLLA_ASSERT(component != component_type::TOC);
_sst->_recognized_components.erase(component);
remove_file(_sst->filename(component_type::TOC)).get();
remove_file(_sst->toc_filename()).get();
_sst->_storage->open(*_sst);
_sst->seal_sstable(false).get();
}