From 6fe40e05fcc3c083f38cd2c407f63c2ae24ccc8b Mon Sep 17 00:00:00 2001 From: Sven Anderson Date: Mon, 9 Aug 2021 19:59:39 +0200 Subject: [PATCH] rbd: deprecate Close() method of MirrorImageGlobalStatusIter Signed-off-by: Sven Anderson --- rbd/mirror.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rbd/mirror.go b/rbd/mirror.go index f6032cf..163824f 100644 --- a/rbd/mirror.go +++ b/rbd/mirror.go @@ -710,10 +710,8 @@ func (iter *MirrorImageGlobalStatusIter) Next() (*GlobalMirrorImageIDAndStatus, } // Close terminates iteration regardless if iteration was completed and -// frees any associated resources. -func (iter *MirrorImageGlobalStatusIter) Close() error { - iter.buf = nil - iter.lastID = "" +// frees any associated resources. (DEPRECATED) +func (*MirrorImageGlobalStatusIter) Close() error { return nil }