Fixes: https://tracker.ceph.com/issues/47919
Signed-off-by: Ruan Zitao <ruanzitao@kuaishou.com>
Signed-off-by: Yang Honggang <yanghonggang@kuaishou.com>
entry.index_ver = header.ver;
/* resetting entry flags, entry might have been previously a delete
* marker */
- entry.flags = (entry.key.instance.empty() ?
- 0 :
- rgw_bucket_dir_entry::FLAG_VER);
+ entry.flags &= rgw_bucket_dir_entry::FLAG_VER;
if (op.tag.size()) {
auto pinter = entry.pending_map.find(op.tag);