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>
// 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;
}