From 7ebea688ef3d134139581ef5bc641f2d75fdc346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Philippe=20Qu=C3=A9m=C3=A9ner?= Date: Mon, 30 Jun 2025 13:53:58 +0200 Subject: [PATCH] fix(unified-storage): return empty list instead of nil (#107384) --- pkg/storage/legacysql/dualwrite/dualwriter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/storage/legacysql/dualwrite/dualwriter.go b/pkg/storage/legacysql/dualwrite/dualwriter.go index 3eb01bea499..b46472be075 100644 --- a/pkg/storage/legacysql/dualwrite/dualwriter.go +++ b/pkg/storage/legacysql/dualwrite/dualwriter.go @@ -100,7 +100,7 @@ func (d *dualWriter) List(ctx context.Context, options *metainternalversion.List // This can happen, as unified storage iteration is doing paging not only based on the provided limit, // but also based on the response size. This check prevents starting the new iteration again. if options.Continue != "" && legacyToken == "" { - return nil, nil + return d.NewList(), nil } // In some cases, where the stores are not in sync yet, the unified storage continue token might already