diff --git a/redis.c b/redis.c index a7532baca..7c0a86956 100644 --- a/redis.c +++ b/redis.c @@ -5956,6 +5956,7 @@ static void hdelCommand(redisClient *c) { } else { deleted = dictDelete((dict*)o->ptr,c->argv[2]) == DICT_OK; } + if (deleted) server.dirty++; addReply(c,deleted ? shared.cone : shared.czero); }