Fixes: https://tracker.ceph.com/issues/47919
Signed-off-by: Ruan Zitao <ruanzitao@kuaishou.com>
Signed-off-by: Yang Honggang <yanghonggang@kuaishou.com>
(cherry picked from commit
f60f9ace1a4bceeda256373cf4603058e1947fa8)
Conflicts:
src/cls/rgw/cls_rgw.cc
- nautilus does not have "rgw_bucket_dir_entry::FLAG_VER"; use "RGW_BUCKET_DIRENT_FLAG_VER" instead
}
entry.index_ver = header.ver;
- entry.flags = (entry.key.instance.empty() ? 0 : RGW_BUCKET_DIRENT_FLAG_VER); /* resetting entry flags, entry might have been previously a delete marker */
+ /* resetting entry flags, entry might have been previously a delete
+ * marker */
+ entry.flags &= RGW_BUCKET_DIRENT_FLAG_VER;
if (op.tag.size()) {
map<string, rgw_bucket_pending_info>::iterator pinter = entry.pending_map.find(op.tag);