Closed allanrogerr closed 1 week ago
Wouldn't this change existing behavior? Maybe do a --with-dm
flag?
Wouldn't this change existing behavior? Maybe do a
--with-dm
flag?
It would however @vadmeste opinion was that although it may break in some rare corner cases in the community, it is better than adding a new flag. Your thoughts @klauspost ?
I see potential scripts breaking... And weird stuff people use it for breaking in strange ways... So personally uncomfortable changing it.
I see potential scripts breaking... And weird stuff people use it for breaking in strange ways... So personally uncomfortable changing it.
Let me take a closer look.
Simplified the implementation by enabling delete marker listing when using --versions
Community Contribution License
All community contributions in this pull request are licensed to the project maintainers under the terms of the Apache 2 license. By creating this pull request I represent that I have the right to license the contributions to the project maintainers under the Apache 2 license.
Description
Default to list delete flags if they are part of the result set, so that they are not hidden from the find function
Motivation and Context
The default behaviour of
mc find
is to not return delete flags. However, for example in the case of ILM, this makes it difficult to detect if there are delete marker candidates for processing, even when theversions
flag is specified.How to test this PR?
Run
mc find --versions
on a specific bucket where delete markers are known to be present. These delete markers should be part of the result set. e.g.Types of changes
Checklist:
commit-id
orPR #
here)