From 87c4cf053952fad1def75e733fd236a78039a77d Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Tue, 8 Mar 2022 22:32:55 +0530 Subject: [PATCH] rgw: Update "CEPH_RGW_DIR_SUGGEST_LOG_OP" for remove entries 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 --- src/rgw/rgw_rados.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 0fd2dc665fee4..d9ebb65cf5851 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -9134,7 +9134,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; } -- 2.39.5