mirror of
https://github.com/pgsty/minio.git
synced 2026-07-24 22:46:16 +03:00
lifecycle: simplify Eval and HasActiveRules (#16036)
This commit is contained in:
committed by
GitHub
parent
5f1999cc71
commit
6eef9b4a23
+1
-1
@@ -445,7 +445,7 @@ func (s *xlStorage) NSScanner(ctx context.Context, cache dataUsageCache, updates
|
||||
// Check if the current bucket has a configured lifecycle policy
|
||||
if globalLifecycleSys != nil {
|
||||
lc, err = globalLifecycleSys.Get(cache.Info.Name)
|
||||
if err == nil && lc.HasActiveRules("", true) {
|
||||
if err == nil && lc.HasActiveRules("") {
|
||||
cache.Info.lifeCycle = lc
|
||||
if intDataUpdateTracker.debug {
|
||||
console.Debugln(color.Green("scannerDisk:") + " lifecycle: Active rules found")
|
||||
|
||||
Reference in New Issue
Block a user