summaryrefslogtreecommitdiff
path: root/src/quicklist.h
diff options
context:
space:
mode:
authorzhaozhao.zz <zhaozhao.zz@alibaba-inc.com>2017-12-03 11:51:35 +0800
committerzhaozhao.zz <zhaozhao.zz@alibaba-inc.com>2017-12-04 19:49:40 +0800
commitb9491b65d991498bf62f2b5533405e161aee650a (patch)
tree6912931bce5db19a1f4e2f10737c3ab9ca2b8ac3 /src/quicklist.h
parent664bbfe7604a28e0d359c04a0b73d1a78d255568 (diff)
downloadredis-b9491b65d991498bf62f2b5533405e161aee650a.tar.gz
quicklist: change the len of quicklist to unsigned long
Diffstat (limited to 'src/quicklist.h')
-rw-r--r--src/quicklist.h4
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;