diff options
author | antirez <antirez@gmail.com> | 2014-03-31 12:21:08 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-03-31 12:21:08 +0200 |
commit | 8aeb0c196a2720c50554fa481c475317492a1577 (patch) | |
tree | 6fd807aaea8a4d605066f41ee010a9135d756dfe | |
parent | 69a93194fd4a8c448cf9e9990ab9991fa9573a55 (diff) | |
download | redis-8aeb0c196a2720c50554fa481c475317492a1577.tar.gz |
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.
-rw-r--r-- | src/hyperloglog.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hyperloglog.c b/src/hyperloglog.c index 65ee55157..9b67c905b 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)) |