From d29c5685a98406ce646e1c7a58e2cfa07726abb7 Mon Sep 17 00:00:00 2001 From: Sem van den Broek Date: Thu, 21 Sep 2023 09:32:26 +0200 Subject: [PATCH] fix:Batched unpack now uses range --- src/commands/includes/removeZSetJobs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/includes/removeZSetJobs.lua b/src/commands/includes/removeZSetJobs.lua index d2bf808322..5858b191b5 100644 --- a/src/commands/includes/removeZSetJobs.lua +++ b/src/commands/includes/removeZSetJobs.lua @@ -8,7 +8,7 @@ local function removeZSetJobs(keyName, hard, baseKey, max) local count = removeJobs(jobs, hard, baseKey, max) if(#jobs > 0) then for from, to in batches(#jobs, 7000) do - rcall("ZREM", keyName, unpack(jobs)) + rcall("ZREM", keyName, unpack(jobs, from, to)) end end return count