diff options
Diffstat (limited to 'src/ziplist.c')
-rw-r--r-- | src/ziplist.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ziplist.c b/src/ziplist.c index 087bd3cee..3b5b7c356 100644 --- a/src/ziplist.c +++ b/src/ziplist.c @@ -1688,6 +1688,7 @@ unsigned int ziplistRandomPairsUnique(unsigned char *zl, unsigned int count, zip #include <sys/time.h> #include "adlist.h" #include "sds.h" +#include "testhelp.h" #define debug(f, ...) { if (DEBUG) printf(f, __VA_ARGS__); } @@ -1842,8 +1843,9 @@ static size_t strEntryBytesLarge(size_t slen) { return slen + zipStorePrevEntryLength(NULL, ZIP_BIG_PREVLEN) + zipStoreEntryEncoding(NULL, 0, slen); } -/* ./redis-server test ziplist <randomseed> --accurate */ -int ziplistTest(int argc, char **argv, int accurate) { +/* ./redis-server test ziplist <randomseed> */ +int ziplistTest(int argc, char **argv, int flags) { + int accurate = (flags & REDIS_TEST_ACCURATE); unsigned char *zl, *p; unsigned char *entry; unsigned int elen; |