diff --git a/sstables/sstables.cc b/sstables/sstables.cc index c24a66fcf9..47e15ebdd7 100644 --- a/sstables/sstables.cc +++ b/sstables/sstables.cc @@ -1830,6 +1830,10 @@ bool sstable::is_quarantined() const noexcept { return boost::algorithm::ends_with(_dir, quarantine_dir); } +bool sstable::is_uploaded() const noexcept { + return boost::algorithm::ends_with(_dir, upload_dir); +} + sstring sstable::component_basename(const sstring& ks, const sstring& cf, version_types version, int64_t generation, format_types format, sstring component) { sstring v = _version_string.at(version); diff --git a/sstables/sstables.hh b/sstables/sstables.hh index 94a07b1965..c720d7e1da 100644 --- a/sstables/sstables.hh +++ b/sstables/sstables.hh @@ -412,6 +412,8 @@ public: bool is_quarantined() const noexcept; + bool is_uploaded() const noexcept; + std::vector> all_components() const; future<> create_links(const sstring& dir, int64_t generation) const;