From: Casey Bodley Date: Tue, 9 Nov 2021 02:19:41 +0000 (-0500) Subject: cls/rgw: helpers take const input params X-Git-Tag: v16.2.13~120^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a7d552a332cb7743f8499dac942ca3925f968850;p=ceph.git cls/rgw: helpers take const input params Signed-off-by: Casey Bodley (cherry picked from commit d7ec0b281c80eeb319fbe8437400c807e3758b6e) --- diff --git a/src/cls/rgw/cls_rgw.cc b/src/cls/rgw/cls_rgw.cc index 61585ce64d238..da1fc71a608ad 100644 --- a/src/cls/rgw/cls_rgw.cc +++ b/src/cls/rgw/cls_rgw.cc @@ -137,9 +137,9 @@ static void bi_log_index_key(cls_method_context_t hctx, string& key, string& id, key.append(id); } -static int log_index_operation(cls_method_context_t hctx, cls_rgw_obj_key& obj_key, RGWModifyOp op, - string& tag, real_time& timestamp, - rgw_bucket_entry_ver& ver, RGWPendingState state, uint64_t index_ver, +static int log_index_operation(cls_method_context_t hctx, const cls_rgw_obj_key& obj_key, + RGWModifyOp op, const string& tag, real_time timestamp, + const rgw_bucket_entry_ver& ver, RGWPendingState state, uint64_t index_ver, string& max_marker, uint16_t bilog_flags, string *owner, string *owner_display_name, rgw_zone_set *zones_trace) { bufferlist bl; @@ -843,7 +843,7 @@ int rgw_bucket_set_tag_timeout(cls_method_context_t hctx, bufferlist *in, buffer return write_bucket_header(hctx, &header); } -static int read_key_entry(cls_method_context_t hctx, cls_rgw_obj_key& key, +static int read_key_entry(cls_method_context_t hctx, const cls_rgw_obj_key& key, string *idx, rgw_bucket_dir_entry *entry, bool special_delete_marker_name = false); @@ -959,7 +959,7 @@ static int read_index_entry(cls_method_context_t hctx, string& name, T* entry) return 0; } -static int read_key_entry(cls_method_context_t hctx, cls_rgw_obj_key& key, +static int read_key_entry(cls_method_context_t hctx, const cls_rgw_obj_key& key, string *idx, rgw_bucket_dir_entry *entry, bool special_delete_marker_name) {