diff options
author | Lu JJ <41555481+ncghost1@users.noreply.github.com> | 2022-04-25 22:47:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 17:47:45 +0300 |
commit | 0c35f54f0a12b3dada3e7156f6595af4a089e24e (patch) | |
tree | 184975f125e78e605b2dff62d62a9592af75cf79 /src/quicklist.h | |
parent | df787764e37ba5958d5b902eef3847ec7185b156 (diff) | |
download | redis-0c35f54f0a12b3dada3e7156f6595af4a089e24e.tar.gz |
fix an unclear comment and add a comment to 'zi' in 'quicklist.h' (#10633)
fix an unclear comment quicklist container formats to quicklist node container formats
Add a comment to 'zi' in quicklistIter (Where it first appeared)
Why do I add a comment to zi:
Because it is not a variable name with a clear meaning, and its name seems to be from the deprecated ziplist.
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 dc30cafd9..8d6951b62 100644 --- a/src/quicklist.h +++ b/src/quicklist.h @@ -116,7 +116,7 @@ typedef struct quicklist { typedef struct quicklistIter { quicklist *quicklist; quicklistNode *current; - unsigned char *zi; + unsigned char *zi; /* points to the current element */ long offset; /* offset in current listpack */ int direction; } quicklistIter; @@ -141,7 +141,7 @@ typedef struct quicklistEntry { /* quicklist compression disable */ #define QUICKLIST_NOCOMPRESS 0 -/* quicklist container formats */ +/* quicklist node container formats */ #define QUICKLIST_NODE_CONTAINER_PLAIN 1 #define QUICKLIST_NODE_CONTAINER_PACKED 2 |