summaryrefslogtreecommitdiff
path: root/src/hyperloglog.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-07-26 15:20:46 +0200
committerantirez <antirez@gmail.com>2015-07-26 15:20:52 +0200
commit554bd0e7bd81715e319cafda437ed2aebd44b6e9 (patch)
tree7b756d6a395b0a443b6641914d68f012ec54a0c2 /src/hyperloglog.c
parent424fe9afd9264991cddb502204276a244537c87f (diff)
downloadredis-554bd0e7bd81715e319cafda437ed2aebd44b6e9.tar.gz
RDMF: use client instead of redisClient, like Disque.
Diffstat (limited to 'src/hyperloglog.c')
-rw-r--r--src/hyperloglog.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/hyperloglog.c b/src/hyperloglog.c
index 74e7b8fc6..6405f5ba9 100644
--- a/src/hyperloglog.c
+++ b/src/hyperloglog.c
@@ -1121,7 +1121,7 @@ robj *createHLLObject(void) {
/* Check if the object is a String with a valid HLL representation.
* Return REDIS_OK if this is true, otherwise reply to the client
* with an error and return REDIS_ERR. */
-int isHLLObjectOrReply(redisClient *c, robj *o) {
+int isHLLObjectOrReply(client *c, robj *o) {
struct hllhdr *hdr;
/* Key exists, check type */
@@ -1152,7 +1152,7 @@ invalid:
}
/* PFADD var ele ele ele ... ele => :0 or :1 */
-void pfaddCommand(redisClient *c) {
+void pfaddCommand(client *c) {
robj *o = lookupKeyWrite(c->db,c->argv[1]);
struct hllhdr *hdr;
int updated = 0, j;
@@ -1192,7 +1192,7 @@ void pfaddCommand(redisClient *c) {
}
/* PFCOUNT var -> approximated cardinality of set. */
-void pfcountCommand(redisClient *c) {
+void pfcountCommand(client *c) {
robj *o;
struct hllhdr *hdr;
uint64_t card;
@@ -1282,7 +1282,7 @@ void pfcountCommand(redisClient *c) {
}
/* PFMERGE dest src1 src2 src3 ... srcN => OK */
-void pfmergeCommand(redisClient *c) {
+void pfmergeCommand(client *c) {
uint8_t max[HLL_REGISTERS];
struct hllhdr *hdr;
int j;
@@ -1348,7 +1348,7 @@ void pfmergeCommand(redisClient *c) {
* This command performs a self-test of the HLL registers implementation.
* Something that is not easy to test from within the outside. */
#define HLL_TEST_CYCLES 1000
-void pfselftestCommand(redisClient *c) {
+void pfselftestCommand(client *c) {
unsigned int j, i;
sds bitcounters = sdsnewlen(NULL,HLL_DENSE_SIZE);
struct hllhdr *hdr = (struct hllhdr*) bitcounters, *hdr2;
@@ -1452,7 +1452,7 @@ cleanup:
/* PFDEBUG <subcommand> <key> ... args ...
* Different debugging related operations about the HLL implementation. */
-void pfdebugCommand(redisClient *c) {
+void pfdebugCommand(client *c) {
char *cmd = c->argv[1]->ptr;
struct hllhdr *hdr;
robj *o;