From aea6e71ef82701e07177744e600e1ef20d60b7d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20S=C3=B6derqvist?= Date: Fri, 5 Feb 2021 18:54:01 +0100 Subject: RM_ZsetRem: Delete key if empty (#8453) Without this fix, RM_ZsetRem can leave empty sorted sets which are not allowed to exist. Removing from a sorted set while iterating seems to work (while inserting causes failed assetions). RM_ZsetRangeEndReached is modified to return 1 if the key doesn't exist, to terminate iteration when the last element has been removed. --- runtest-moduleapi | 1 + 1 file changed, 1 insertion(+) (limited to 'runtest-moduleapi') diff --git a/runtest-moduleapi b/runtest-moduleapi index e554226c1..53656fad7 100755 --- a/runtest-moduleapi +++ b/runtest-moduleapi @@ -32,5 +32,6 @@ $TCLSH tests/test_helper.tcl \ --single unit/moduleapi/getkeys \ --single unit/moduleapi/test_lazyfree \ --single unit/moduleapi/defrag \ +--single unit/moduleapi/zset \ --single unit/moduleapi/stream \ "${@}" -- cgit v1.2.1