diff options
author | zhaozhao.zz <zhaozhao.zz@alibaba-inc.com> | 2017-12-03 11:51:35 +0800 |
---|---|---|
committer | zhaozhao.zz <zhaozhao.zz@alibaba-inc.com> | 2017-12-04 19:49:40 +0800 |
commit | b9491b65d991498bf62f2b5533405e161aee650a (patch) | |
tree | 6912931bce5db19a1f4e2f10737c3ab9ca2b8ac3 /src/quicklist.h | |
parent | 664bbfe7604a28e0d359c04a0b73d1a78d255568 (diff) | |
download | redis-b9491b65d991498bf62f2b5533405e161aee650a.tar.gz |
quicklist: change the len of quicklist to unsigned long
Diffstat (limited to 'src/quicklist.h')
-rw-r--r-- | src/quicklist.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quicklist.h b/src/quicklist.h index 7ca23d6e6..955a22cfa 100644 --- a/src/quicklist.h +++ b/src/quicklist.h @@ -64,7 +64,7 @@ typedef struct quicklistLZF { char compressed[]; } quicklistLZF; -/* quicklist is a 32 byte struct (on 64-bit systems) describing a quicklist. +/* quicklist is a 40 byte struct (on 64-bit systems) describing a quicklist. * 'count' is the number of total entries. * 'len' is the number of quicklist nodes. * 'compress' is: -1 if compression disabled, otherwise it's the number @@ -74,7 +74,7 @@ typedef struct quicklist { quicklistNode *head; quicklistNode *tail; unsigned long count; /* total count of all entries in all ziplists */ - unsigned int len; /* number of quicklistNodes */ + unsigned long len; /* number of quicklistNodes */ int fill : 16; /* fill factor for individual nodes */ unsigned int compress : 16; /* depth of end nodes not to compress;0=off */ } quicklist; |