From b3a5c5a0569f95a5a755ea0dc03ec2c1ea4bdc4d Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Tue, 29 Aug 2017 15:51:56 -0400 Subject: [PATCH] rgw: MetadataManager interface takes const string refs Signed-off-by: Casey Bodley --- src/rgw/rgw_metadata.cc | 5 +++-- src/rgw/rgw_metadata.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/rgw/rgw_metadata.cc b/src/rgw/rgw_metadata.cc index 6c554810e98..6a275239c5f 100644 --- a/src/rgw/rgw_metadata.cc +++ b/src/rgw/rgw_metadata.cc @@ -844,12 +844,13 @@ struct list_keys_handle { RGWMetadataHandler *handler; }; -int RGWMetadataManager::list_keys_init(string& section, void **handle) +int RGWMetadataManager::list_keys_init(const string& section, void **handle) { return list_keys_init(section, string(), handle); } -int RGWMetadataManager::list_keys_init(string& section, const string& marker, void **handle) +int RGWMetadataManager::list_keys_init(const string& section, + const string& marker, void **handle) { string entry; RGWMetadataHandler *handler; diff --git a/src/rgw/rgw_metadata.h b/src/rgw/rgw_metadata.h index f6dc2db03bc..0dfc73f112d 100644 --- a/src/rgw/rgw_metadata.h +++ b/src/rgw/rgw_metadata.h @@ -353,8 +353,8 @@ public: obj_version *existing_version = NULL); int remove(string& metadata_key); - int list_keys_init(string& section, void **phandle); - int list_keys_init(string& section, const string& marker, void **phandle); + int list_keys_init(const string& section, void **phandle); + int list_keys_init(const string& section, const string& marker, void **phandle); int list_keys_next(void *handle, int max, list& keys, bool *truncated); void list_keys_complete(void *handle); -- 2.39.5