mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
fix crawler to detect lifecycle on bucket even if filter nil (#10532)
This commit is contained in:
parent
dd4a2d7419
commit
aa12d75d75
@ -350,7 +350,7 @@ func (f *folderScanner) scanQueuedLevels(ctx context.Context, folders []cachedFo
|
||||
// If there are lifecycle rules for the prefix, remove the filter.
|
||||
filter := f.withFilter
|
||||
var activeLifeCycle *lifecycle.Lifecycle
|
||||
if f.oldCache.Info.lifeCycle != nil && filter != nil {
|
||||
if f.oldCache.Info.lifeCycle != nil {
|
||||
_, prefix := path2BucketObjectWithBasePath(f.root, folder.name)
|
||||
if f.oldCache.Info.lifeCycle.HasActiveRules(prefix, true) {
|
||||
if f.dataUsageCrawlDebug {
|
||||
|
Loading…
Reference in New Issue
Block a user