From b956ad18da9ca157cd25f074db8e1a9f100514aa Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Tue, 15 Nov 2022 11:28:53 -0500 Subject: [PATCH] rbd: increase maximum number of trash entries listable Work around an issue reported that due to a large number of items in the rbd trash the function fails rather than listing the items as desired. This short term fix simply increases the limit rather than doing anything long term. Signed-off-by: John Mulligan --- rbd/rbd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rbd/rbd.go b/rbd/rbd.go index 5f27bb7..51deddf 100644 --- a/rbd/rbd.go +++ b/rbd/rbd.go @@ -984,7 +984,7 @@ func GetTrashList(ioctx *rados.IOContext) ([]TrashInfo, error) { count C.size_t entries []C.rbd_trash_image_info_t ) - retry.WithSizes(32, 1024, func(size int) retry.Hint { + retry.WithSizes(32, 10240, func(size int) retry.Hint { count = C.size_t(size) entries = make([]C.rbd_trash_image_info_t, count) ret := C.rbd_trash_list(cephIoctx(ioctx), &entries[0], &count)