summaryrefslogtreecommitdiff
path: root/src/ziplist.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2016-12-16 09:02:50 +0100
committerantirez <antirez@gmail.com>2016-12-16 09:02:50 +0100
commitac61f9062583d67dd43f7d698824464d1e30d84b (patch)
tree5d447b04cd69c0d408988c6ab7f7f7239ef5a97c /src/ziplist.h
parentb53e73e159a38308c2873bfce7237b7373ef4374 (diff)
downloadredis-ac61f9062583d67dd43f7d698824464d1e30d84b.tar.gz
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.
Diffstat (limited to 'src/ziplist.h')
-rw-r--r--src/ziplist.h1
1 files changed, 1 insertions, 0 deletions
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[]);