diff --git a/src/hyperloglog.c b/src/hyperloglog.c index 087aa7632..8874cde7d 100644 --- a/src/hyperloglog.c +++ b/src/hyperloglog.c @@ -30,6 +30,7 @@ */ #include "redis.h" +#include "crc64.h" /* The Redis HyperLogLog implementation is based on the following ideas: * @@ -53,6 +54,7 @@ #define REDIS_HLL_P 14 /* The greater is P, the smaller the error. */ #define REDIS_HLL_REGISTERS (1< oldcount) { + HLL_SET_REGISTER(registers,index,count); + return 1; + } else { + return 0; + } +} + /* ========================== HyperLogLog commands ========================== */ /* This command performs a self-test of the HLL registers implementation.