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
8183a4ca
Unverified
Commit
8183a4ca
authored
Jun 08, 2020
by
Salvatore Sanfilippo
Committed by
GitHub
Jun 08, 2020
Browse files
Merge pull request #7369 from oranagra/no_reject_watch
Avoid rejecting WATCH / UNWATCH, like MULTI/EXEC/DISCARD
parents
265a7e7e
2fa077b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
8183a4ca
...
@@ -776,11 +776,11 @@ struct redisCommand redisCommandTable[] = {
...
@@ -776,11 +776,11 @@ struct redisCommand redisCommandTable[] = {
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"watch"
,
watchCommand
,
-
2
,
{
"watch"
,
watchCommand
,
-
2
,
"no-script fast @transaction"
,
"no-script fast
ok-loading ok-stale
@transaction"
,
0
,
NULL
,
1
,
-
1
,
1
,
0
,
0
,
0
},
0
,
NULL
,
1
,
-
1
,
1
,
0
,
0
,
0
},
{
"unwatch"
,
unwatchCommand
,
1
,
{
"unwatch"
,
unwatchCommand
,
1
,
"no-script fast @transaction"
,
"no-script fast
ok-loading ok-stale
@transaction"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"cluster"
,
clusterCommand
,
-
2
,
{
"cluster"
,
clusterCommand
,
-
2
,
...
@@ -3627,6 +3627,8 @@ int processCommand(client *c) {
...
@@ -3627,6 +3627,8 @@ int processCommand(client *c) {
c
->
cmd
->
proc
!=
multiCommand
&&
c
->
cmd
->
proc
!=
multiCommand
&&
c
->
cmd
->
proc
!=
execCommand
&&
c
->
cmd
->
proc
!=
execCommand
&&
c
->
cmd
->
proc
!=
discardCommand
&&
c
->
cmd
->
proc
!=
discardCommand
&&
c
->
cmd
->
proc
!=
watchCommand
&&
c
->
cmd
->
proc
!=
unwatchCommand
&&
!
(
c
->
cmd
->
proc
==
shutdownCommand
&&
!
(
c
->
cmd
->
proc
==
shutdownCommand
&&
c
->
argc
==
2
&&
c
->
argc
==
2
&&
tolower
(((
char
*
)
c
->
argv
[
1
]
->
ptr
)[
0
])
==
'n'
)
&&
tolower
(((
char
*
)
c
->
argv
[
1
]
->
ptr
)[
0
])
==
'n'
)
&&
...
...
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