From 053bbb601cbd7b7c7288e5f505189bf70e4ec071 Mon Sep 17 00:00:00 2001 From: Bilal Akhtar Date: Mon, 21 Aug 2023 13:43:43 -0400 Subject: [PATCH] storage: Make noopCloseReader support ReaderWithMustIterators Prevents a panic in a cast in the MVCCIncrementalIterator creation path, which is the only path that requires a cast to ReaderWithMustIterators. Fixes #109158. Epic: CRDB-30807 Release note: None --- pkg/storage/mvcc_history_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/storage/mvcc_history_test.go b/pkg/storage/mvcc_history_test.go index 301ff75db9bc..cec43714d8d0 100644 --- a/pkg/storage/mvcc_history_test.go +++ b/pkg/storage/mvcc_history_test.go @@ -2683,7 +2683,7 @@ func (i *iterWithCloser) Close() { // noopCloseReader overrides Reader.Close() with a noop. type noopCloseReader struct { - storage.Reader + storage.ReaderWithMustIterators } func (noopCloseReader) Close() {}