Merge pull request #32562 from IlsooByun/fix_dm

rgw: do not remove delete marker when fixing versioned bucket
This commit is contained in:
J. Eric Ivancich 2020-02-12 14:47:44 -05:00 committed by GitHub
commit 210fb41806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8604,7 +8604,7 @@ int RGWRados::check_disk_state(librados::IoCtx io_ctx,
return r;
list_state.pending_map.clear(); // we don't need this and it inflates size
if (!astate->exists) {
if (!list_state.is_delete_marker() && !astate->exists) {
/* object doesn't exist right now -- hopefully because it's
* marked as !exists and got deleted */
if (list_state.exists) {