From d96cee3772c77da0ee082099a313171306fcc027 Mon Sep 17 00:00:00 2001 From: Marcus Watts Date: Thu, 26 Aug 2021 05:08:00 -0400 Subject: [PATCH] rgw: remove unused routine in rgw_admin Routine "dump_bi_entry" contains logic to decode rgw_bucket_dir_entry which can contain etags to be fixed. However, it turns out this routine is never called, so let's just get rid of it. (The replacement code lives in cls land.) Fixes: https://tracker.ceph.com/issues/61260 Signed-off-by: Marcus Watts --- src/rgw/rgw_admin.cc | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 228e165647f50..a0a6d95beddc6 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -1100,31 +1100,6 @@ log_type get_log_type(const string& type_str) { return static_cast(0xff); } -void dump_bi_entry(bufferlist& bl, BIIndexType index_type, Formatter *formatter) -{ - auto iter = bl.cbegin(); - switch (index_type) { - case BIIndexType::Plain: - case BIIndexType::Instance: - { - rgw_bucket_dir_entry entry; - decode(entry, iter); - encode_json("entry", entry, formatter); - } - break; - case BIIndexType::OLH: - { - rgw_bucket_olh_entry entry; - decode(entry, iter); - encode_json("entry", entry, formatter); - } - break; - default: - ceph_abort(); - break; - } -} - static void show_user_info(RGWUserInfo& info, Formatter *formatter) { encode_json("user_info", info, formatter); -- 2.47.3