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:
Avi Kivity
2015-09-06 14:30:30 +03:00
parent e1c7209258
commit 93579287da
2 changed files with 5 additions and 0 deletions

View File

@@ -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);
}

View File

@@ -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;