mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-23 18:10:39 +00:00
sstables: add sstable::toc_filename()
Useful for when we want to later access an sstable without instantiating the heavyweight sstable class.
This commit is contained in:
@@ -1352,6 +1352,10 @@ const sstring sstable::filename(component_type f) const {
|
||||
return filename(_dir, _ks, _cf, _version, _generation, _format, f);
|
||||
}
|
||||
|
||||
sstring sstable::toc_filename() const {
|
||||
return filename(component_type::TOC);
|
||||
}
|
||||
|
||||
const sstring sstable::temporary_filename(component_type f) {
|
||||
return filename(_dir, _ks, _cf, _version, _generation, _format, f, true);
|
||||
}
|
||||
|
||||
@@ -238,6 +238,7 @@ public:
|
||||
const sstring get_filename() {
|
||||
return filename(component_type::Data);
|
||||
}
|
||||
sstring toc_filename() const;
|
||||
|
||||
metadata_collector& get_metadata_collector() {
|
||||
return _collector;
|
||||
|
||||
Reference in New Issue
Block a user