]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cls/rgw: rgw_cls_bi_entry::get_info() is const
authorCasey Bodley <cbodley@redhat.com>
Tue, 3 Sep 2024 15:37:45 +0000 (11:37 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 5 Sep 2024 17:23:40 +0000 (13:23 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/cls/rgw/cls_rgw_types.cc
src/cls/rgw/cls_rgw_types.h

index 8b125640e86afe233f8eff74d2a97667abd4be60..d5f6ba4bdee94ccebffcb1c756af018cff4e11ec 100644 (file)
@@ -406,7 +406,7 @@ void rgw_cls_bi_entry::dump(Formatter *f) const
 
 bool rgw_cls_bi_entry::get_info(cls_rgw_obj_key *key,
                                 RGWObjCategory *category,
-                                rgw_bucket_category_stats *accounted_stats)
+                                rgw_bucket_category_stats *accounted_stats) const
 {
   using ceph::decode;
   auto iter = data.cbegin();
index aaf461a5bc8ffe72755483a8e4ffe8ffdb606edd..876154f01d83a0fbabba9280d976f085eb9c8e19 100644 (file)
@@ -505,7 +505,7 @@ struct rgw_cls_bi_entry {
   void decode_json(JSONObj *obj, cls_rgw_obj_key *effective_key = NULL);
   static void generate_test_instances(std::list<rgw_cls_bi_entry*>& o);
   bool get_info(cls_rgw_obj_key *key, RGWObjCategory *category,
-               rgw_bucket_category_stats *accounted_stats);
+               rgw_bucket_category_stats *accounted_stats) const;
 };
 WRITE_CLASS_ENCODER(rgw_cls_bi_entry)