From bcb81b326a373aa86d7e6a046febc8ba74f21c04 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Mon, 25 Nov 2024 14:49:04 +0100 Subject: caller controls threshold for bulk-loading chunks in IterateChunks (#222) * Allow caller to control threshold for bulk-loading chunks in IterateChunks * use smaller batch chunk reading for /fileinfos and /chunkinfos as we do not intend to read the payload * use smaller batch read buffer when just querying for size of attachments --- src/zenstore/blockstore.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/zenstore/blockstore.cpp') diff --git a/src/zenstore/blockstore.cpp b/src/zenstore/blockstore.cpp index 8a6d9c18d..fcf934344 100644 --- a/src/zenstore/blockstore.cpp +++ b/src/zenstore/blockstore.cpp @@ -1634,7 +1634,8 @@ TEST_CASE("blockstore.iterate.chunks") break; } return true; - }); + }, + 0); CHECK(Continue); }); return true; -- cgit v1.2.3