sstable/s3: Mark make_s3_object_name() const

Signed-off-by: Pavel Emelyanov <xemul@scylladb.com>
This commit is contained in:
Pavel Emelyanov
2023-06-01 18:07:23 +03:00
parent f15246f5ef
commit 84b318228a

View File

@@ -427,7 +427,7 @@ class s3_storage : public sstables::storage {
static constexpr auto status_sealed = "sealed";
static constexpr auto status_removing = "removing";
sstring make_s3_object_name(const sstable& sst, component_type type);
sstring make_s3_object_name(const sstable& sst, component_type type) const;
future<> ensure_remote_prefix(const sstable& sst);
@@ -460,7 +460,7 @@ public:
virtual sstring prefix() const override { return _location; }
};
sstring s3_storage::make_s3_object_name(const sstable& sst, component_type type) {
sstring s3_storage::make_s3_object_name(const sstable& sst, component_type type) const {
return format("/{}/{}/{}", _bucket, *_remote_prefix, sstable_version_constants::get_component_map(sst.get_version()).at(type));
}