Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
50d43a98
Commit
50d43a98
authored
Jan 28, 2013
by
Pierre Chapuis
Browse files
fix comments forgotten in #285 (zipmap -> ziplist)
parent
61853a9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
50d43a98
...
...
@@ -539,7 +539,7 @@ dictType commandTableDictType = {
NULL
/* val destructor */
};
/* Hash type hash table (note that small hashes are represented with zip
map
s) */
/* Hash type hash table (note that small hashes are represented with zip
list
s) */
dictType
hashDictType
=
{
dictEncObjHash
,
/* hash function */
NULL
,
/* key dup */
...
...
src/ziplist.c
View file @
50d43a98
...
...
@@ -739,10 +739,10 @@ unsigned char *ziplistPrev(unsigned char *zl, unsigned char *p) {
}
}
/* Get entry pointe
r
to by 'p' and store in either 'e' or 'v' depending
/* Get entry pointe
d
to by 'p' and store in either 'e' or 'v' depending
* on the encoding of the entry. 'e' is always set to NULL to be able
* to find out whether the string pointer or the integer value was set.
* Return 0 if 'p' points to the end of the zip
map
, 1 otherwise. */
* Return 0 if 'p' points to the end of the zip
list
, 1 otherwise. */
unsigned
int
ziplistGet
(
unsigned
char
*
p
,
unsigned
char
**
sstr
,
unsigned
int
*
slen
,
long
long
*
sval
)
{
zlentry
entry
;
if
(
p
==
NULL
||
p
[
0
]
==
ZIP_END
)
return
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment