mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-06 23:13:15 +00:00
sstable: add is_uploaded() predicate
Signed-off-by: Michael Livshin <michael.livshin@scylladb.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -412,6 +412,8 @@ public:
|
||||
|
||||
bool is_quarantined() const noexcept;
|
||||
|
||||
bool is_uploaded() const noexcept;
|
||||
|
||||
std::vector<std::pair<component_type, sstring>> all_components() const;
|
||||
|
||||
future<> create_links(const sstring& dir, int64_t generation) const;
|
||||
|
||||
Reference in New Issue
Block a user