summaryrefslogtreecommitdiff
path: root/runtest-moduleapi
diff options
context:
space:
mode:
authorViktor Söderqvist <viktor.soderqvist@est.tech>2021-02-05 18:54:01 +0100
committerGitHub <noreply@github.com>2021-02-05 19:54:01 +0200
commitaea6e71ef82701e07177744e600e1ef20d60b7d0 (patch)
tree7bb6a1a9e3f6b109fad268134b735b7868b928df /runtest-moduleapi
parentb3bdcd2278d1822d861d6e4c6b9688e6b0a33d37 (diff)
downloadredis-aea6e71ef82701e07177744e600e1ef20d60b7d0.tar.gz
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.
Diffstat (limited to 'runtest-moduleapi')
-rwxr-xr-xruntest-moduleapi1
1 files changed, 1 insertions, 0 deletions
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 \
"${@}"