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
c7b9a57f
Commit
c7b9a57f
authored
Jan 28, 2013
by
Pierre Chapuis
Committed by
antirez
Feb 11, 2013
Browse files
fix comments forgotten in #285 (zipmap -> ziplist)
parent
63ad0e88
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
c7b9a57f
...
@@ -537,7 +537,7 @@ dictType commandTableDictType = {
...
@@ -537,7 +537,7 @@ dictType commandTableDictType = {
NULL
/* val destructor */
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
=
{
dictType
hashDictType
=
{
dictEncObjHash
,
/* hash function */
dictEncObjHash
,
/* hash function */
NULL
,
/* key dup */
NULL
,
/* key dup */
...
...
src/ziplist.c
View file @
c7b9a57f
...
@@ -739,10 +739,10 @@ unsigned char *ziplistPrev(unsigned char *zl, unsigned char *p) {
...
@@ -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
* 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.
* 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
)
{
unsigned
int
ziplistGet
(
unsigned
char
*
p
,
unsigned
char
**
sstr
,
unsigned
int
*
slen
,
long
long
*
sval
)
{
zlentry
entry
;
zlentry
entry
;
if
(
p
==
NULL
||
p
[
0
]
==
ZIP_END
)
return
0
;
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