make sure to pass Lifecycle if set for List filtering (#14722)

PR #14606 never really passed the Lifecycle filter
down to the listing callers to ensure skipping the
entries.
This commit is contained in:
Harshavardhana
2022-04-10 11:14:52 -07:00
committed by GitHub
parent 4ce86ff5fa
commit e77ad3f9bb
3 changed files with 12 additions and 12 deletions

View File

@@ -93,13 +93,13 @@ type listPathOptions struct {
// Versioned is this a ListObjectVersions call.
Versioned bool
// pool and set of where the cache is located.
pool, set int
// lcFilter performs filtering based on lifecycle.
// Lifecycle performs filtering based on lifecycle.
// This will filter out objects if the most recent version should be deleted by lifecycle.
// Is not transferred across request calls.
lcFilter *lifecycle.Lifecycle
Lifecycle *lifecycle.Lifecycle
// pool and set of where the cache is located.
pool, set int
}
func init() {