Skip to content

Commit 2205bf9

Browse files
authored
move statement in if condition for zremrangeGenericCommand function (#2060)
It is similar to PR #2001, this PR goal is to make logic clearer Signed-off-by: hwware <wen.hui.ware@gmail.com>
1 parent 0862f9f commit 2205bf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/t_zset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2011,8 +2011,8 @@ void zremrangeGenericCommand(client *c, zrange_type rangetype) {
20112011
signalModifiedKey(c, c->db, key);
20122012
notifyKeyspaceEvent(NOTIFY_ZSET, notify_type, key, c->db->id);
20132013
if (keyremoved) notifyKeyspaceEvent(NOTIFY_GENERIC, "del", key, c->db->id);
2014+
server.dirty += deleted;
20142015
}
2015-
server.dirty += deleted;
20162016
addReplyLongLong(c, deleted);
20172017

20182018
cleanup:

0 commit comments

Comments
 (0)