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
64722b09
Commit
64722b09
authored
Oct 25, 2013
by
antirez
Browse files
SCAN: use define REDIS_LONGSTR_SIZE instead of fixed len.
parent
43fdf3b4
Changes
1
Show whitespace changes
Inline
Side-by-side
src/db.c
View file @
64722b09
...
@@ -329,7 +329,7 @@ void scanCallback(void *privdata, const dictEntry *de) {
...
@@ -329,7 +329,7 @@ void scanCallback(void *privdata, const dictEntry *de) {
void
scanCommand
(
redisClient
*
c
)
{
void
scanCommand
(
redisClient
*
c
)
{
int
rv
;
int
rv
;
int
i
,
j
;
int
i
,
j
;
char
buf
[
32
];
char
buf
[
REDIS_LONGSTR_SIZE
];
list
*
keys
=
listCreate
();
list
*
keys
=
listCreate
();
listNode
*
ln
,
*
ln_
;
listNode
*
ln
,
*
ln_
;
unsigned
long
cursor
=
0
;
unsigned
long
cursor
=
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