Remove condition on where we return from unified storage in mode2 (#92593)

This commit is contained in:
Leonor Oliveira 2024-08-28 15:31:53 +01:00 committed by GitHub
parent 01b9ad3789
commit 09f102b72e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -181,11 +181,7 @@ func (d *DualWriterMode2) List(ctx context.Context, options *metainternalversion
return nil, err
}
// if the number of items in the legacy list and the storage list are the same, we can return the storage list
if len(storageList) == len(legacyList) {
return sl, nil
}
log.Info("lists from legacy and storage are not the same size")
// always return the list from legacy storage
return ll, nil
}