diff options
author | antirez <antirez@gmail.com> | 2016-12-16 09:02:50 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2016-12-16 09:02:50 +0100 |
commit | ac61f9062583d67dd43f7d698824464d1e30d84b (patch) | |
tree | 5d447b04cd69c0d408988c6ab7f7f7239ef5a97c /src/ziplist.h | |
parent | b53e73e159a38308c2873bfce7237b7373ef4374 (diff) | |
download | redis-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.h | 1 |
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[]); |