From 84b318228a40cf10e8790c4cc1f65ceea577eed5 Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Thu, 1 Jun 2023 18:07:23 +0300 Subject: [PATCH] sstable/s3: Mark make_s3_object_name() const Signed-off-by: Pavel Emelyanov --- sstables/storage.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sstables/storage.cc b/sstables/storage.cc index fcdf7e43c9..4040fd14d2 100644 --- a/sstables/storage.cc +++ b/sstables/storage.cc @@ -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)); }