From: antirez Date: Thu, 18 Mar 2010 17:56:07 +0000 (+0100) Subject: increment server.dirty on HDEL X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/c77169b7e992697d364e886555b613ba8ca27f83 increment server.dirty on HDEL --- diff --git a/redis.c b/redis.c index a7532bac..7c0a8695 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); }