From ac61f9062583d67dd43f7d698824464d1e30d84b Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 16 Dec 2016 09:02:50 +0100 Subject: DEBUG: new "ziplist" subcommand added. Dumps a ziplist on stdout. The commit improves ziplistRepr() and adds a new debugging subcommand so that we can trigger the dump directly from the Redis API. This command capability was used while investigating issue #3684. --- src/ziplist.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ziplist.h') diff --git a/src/ziplist.h b/src/ziplist.h index ae96823f9..964a47f6d 100644 --- a/src/ziplist.h +++ b/src/ziplist.h @@ -48,6 +48,7 @@ unsigned int ziplistCompare(unsigned char *p, unsigned char *s, unsigned int sle unsigned char *ziplistFind(unsigned char *p, unsigned char *vstr, unsigned int vlen, unsigned int skip); unsigned int ziplistLen(unsigned char *zl); size_t ziplistBlobLen(unsigned char *zl); +void ziplistRepr(unsigned char *zl); #ifdef REDIS_TEST int ziplistTest(int argc, char *argv[]); -- cgit v1.2.1