From f07b1514bbd8bc203fe0056f24b1b23f2ea3b504 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 31 Mar 2014 12:21:08 +0200 Subject: [PATCH] HLLADD: propagate write when only variable name is given. The following form is given: HLLADD myhll No element is provided in the above case so if 'myhll' var does not exist the result is to just create an empty HLL structure, and no update will be performed on the registers. In this case, the DB should still be set dirty and the command propagated. --- src/hyperloglog.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hyperloglog.c b/src/hyperloglog.c index 65ee5515..9b67c905 100644 --- a/src/hyperloglog.c +++ b/src/hyperloglog.c @@ -440,6 +440,7 @@ void hllAddCommand(redisClient *c) { * is guaranteed to return bytes initialized to zero. */ o = createObject(REDIS_STRING,sdsnewlen(NULL,REDIS_HLL_SIZE)); dbAdd(c->db,c->argv[1],o); + updated++; } else { /* Key exists, check type */ if (checkType(c,o,REDIS_STRING))