summaryrefslogtreecommitdiff
path: root/src/t_hash.c
diff options
context:
space:
mode:
authorsundb <sundbcn@gmail.com>2020-12-15 15:30:24 +0800
committerGitHub <noreply@github.com>2020-12-15 09:30:24 +0200
commit7993780dda22df01cebba42d16f805213d66e194 (patch)
treead8f584bb0f9fff5bcbbbf4ce444473945e3a69b /src/t_hash.c
parent9acd40d97b00aefeae1ae8f523cd9b0adde80d81 (diff)
downloadredis-7993780dda22df01cebba42d16f805213d66e194.tar.gz
Fix some wrong server.dirty increments (#8140)
Fix wrong server dirty increment in * spopWithCountCommand * hsetCommand * ltrimCommand * pfaddCommand Some didn't increment the amount of fields (just one per command). Others had excessive increments.
Diffstat (limited to 'src/t_hash.c')
-rw-r--r--src/t_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/t_hash.c b/src/t_hash.c
index ff9ac742e..51c7d6758 100644
--- a/src/t_hash.c
+++ b/src/t_hash.c
@@ -644,7 +644,7 @@ void hsetCommand(client *c) {
}
signalModifiedKey(c,c->db,c->argv[1]);
notifyKeyspaceEvent(NOTIFY_HASH,"hset",c->argv[1],c->db->id);
- server.dirty++;
+ server.dirty += (c->argc - 2)/2;
}
void hincrbyCommand(client *c) {