increment server.dirty on HDEL

This commit is contained in:
antirez 2010-03-18 18:56:07 +01:00
parent 7b7f987e91
commit c77169b7e9

View File

@ -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);
}