HLLSELFTEST command implemented.

To test the bitfield array of counters set/get macros from the Redis Tcl
suite is hard, so a specialized command that is able to test the
internals was developed.
This commit is contained in:
antirez
2014-03-28 12:11:36 +01:00
parent 02d88fb201
commit de3f821af6
4 changed files with 53 additions and 8 deletions

View File

@ -258,7 +258,8 @@ struct redisCommand redisCommandTable[] = {
{"time",timeCommand,1,"rR",0,NULL,0,0,0,0,0},
{"bitop",bitopCommand,-4,"wm",0,NULL,2,-1,1,0,0},
{"bitcount",bitcountCommand,-2,"r",0,NULL,1,1,1,0,0},
{"bitpos",bitposCommand,-3,"r",0,NULL,1,1,1,0,0}
{"bitpos",bitposCommand,-3,"r",0,NULL,1,1,1,0,0},
{"hllselftest",hllSelftestCommand,1,"r",0,NULL,0,0,0,0,0}
};
/*============================ Utility functions ============================ */