rbd: deprecate Close() method of MirrorImageGlobalStatusIter

Signed-off-by: Sven Anderson <sven@redhat.com>
This commit is contained in:
Sven Anderson 2021-08-09 19:59:39 +02:00 committed by mergify[bot]
parent 9edf093e7e
commit 6fe40e05fc
1 changed files with 2 additions and 4 deletions

View File

@ -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
}