From 09f102b72e1a514dec560c905baca2a1024ba2b6 Mon Sep 17 00:00:00 2001 From: Leonor Oliveira <9090754+leonorfmartins@users.noreply.github.com> Date: Wed, 28 Aug 2024 15:31:53 +0100 Subject: [PATCH] Remove condition on where we return from unified storage in mode2 (#92593) --- pkg/apiserver/rest/dualwriter_mode2.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/apiserver/rest/dualwriter_mode2.go b/pkg/apiserver/rest/dualwriter_mode2.go index 7b057455445..a20bb8b4e20 100644 --- a/pkg/apiserver/rest/dualwriter_mode2.go +++ b/pkg/apiserver/rest/dualwriter_mode2.go @@ -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 }