Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
cff27903
Commit
cff27903
authored
Oct 06, 2015
by
antirez
Browse files
Fix GEORADIUS COUNT option arity checks.
parent
ded5a248
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/geo.c
View file @
cff27903
...
@@ -483,7 +483,7 @@ void georadiusGeneric(client *c, int type) {
...
@@ -483,7 +483,7 @@ void georadiusGeneric(client *c, int type) {
sort
=
SORT_ASC
;
sort
=
SORT_ASC
;
}
else
if
(
!
strcasecmp
(
arg
,
"desc"
))
{
}
else
if
(
!
strcasecmp
(
arg
,
"desc"
))
{
sort
=
SORT_DESC
;
sort
=
SORT_DESC
;
}
else
if
(
!
strcasecmp
(
arg
,
"count"
)
&&
remaining
>
0
)
{
}
else
if
(
!
strcasecmp
(
arg
,
"count"
)
&&
(
i
+
1
)
<
remaining
)
{
if
(
getLongLongFromObjectOrReply
(
c
,
c
->
argv
[
base_args
+
i
+
1
],
if
(
getLongLongFromObjectOrReply
(
c
,
c
->
argv
[
base_args
+
i
+
1
],
&
count
,
NULL
)
!=
C_OK
)
return
;
&
count
,
NULL
)
!=
C_OK
)
return
;
if
(
count
<=
0
)
{
if
(
count
<=
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