]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls/rgw: helpers take const input params
authorCasey Bodley <cbodley@redhat.com>
Tue, 9 Nov 2021 02:19:41 +0000 (21:19 -0500)
committerCasey Bodley <cbodley@redhat.com>
Thu, 23 Feb 2023 19:26:30 +0000 (14:26 -0500)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit d7ec0b281c80eeb319fbe8437400c807e3758b6e)

src/cls/rgw/cls_rgw.cc

index 61585ce64d238657403b2495c9a1434cbe45903a..da1fc71a608ad362151e04d44c2455352b5c9b32 100644 (file)
@@ -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)
 {