]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Update "CEPH_RGW_DIR_SUGGEST_LOG_OP" for remove entries 50539/head
authorSoumya Koduri <skoduri@redhat.com>
Tue, 8 Mar 2022 17:02:55 +0000 (22:32 +0530)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Wed, 24 Jul 2024 17:32:41 +0000 (00:32 +0700)
dir_suggest() expects "CEPH_RGW_DIR_SUGGEST_LOG_OP" flag to be set to log
completion of any pending Bucket Index transactions. This flag was not updated
for CEPH_RGW_REMOVE op entries in check_disk_state().
This change fixes the same.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
(cherry picked from commit 87c4cf053952fad1def75e733fd236a78039a77d)

src/rgw/rgw_rados.cc

index 003a889e231769d6bf65e4285a4f8009211f41e3..dbd8de55cccb72819457c6a01c57329554bb2f0c 100644 (file)
@@ -9526,7 +9526,7 @@ int RGWRados::check_disk_state(const DoutPrefixProvider *dpp,
     // encode a suggested removal of that key
     list_state.ver.epoch = io_ctx.get_last_version();
     list_state.ver.pool = io_ctx.get_id();
-    cls_rgw_encode_suggestion(CEPH_RGW_REMOVE, list_state, suggested_updates);
+    cls_rgw_encode_suggestion(CEPH_RGW_REMOVE | suggest_flag, list_state, suggested_updates);
     return -ENOENT;
   }