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
5f1fcc59
Commit
5f1fcc59
authored
Jun 14, 2018
by
zhaozhao.zz
Committed by
antirez
Jun 29, 2018
Browse files
fix exists command on slave
parent
ab145a9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/db.c
View file @
5f1fcc59
...
...
@@ -481,8 +481,7 @@ void existsCommand(client *c) {
int
j
;
for
(
j
=
1
;
j
<
c
->
argc
;
j
++
)
{
expireIfNeeded
(
c
->
db
,
c
->
argv
[
j
]);
if
(
dbExists
(
c
->
db
,
c
->
argv
[
j
]))
count
++
;
if
(
lookupKeyRead
(
c
->
db
,
c
->
argv
[
j
]))
count
++
;
}
addReplyLongLong
(
c
,
count
);
}
...
...
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