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

This commit is contained in:
Leonor Oliveira
2024-08-28 16:31:53 +02:00
committed by GitHub
parent 01b9ad3789
commit 09f102b72e
+1 -5
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
}