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
889d39b5
Commit
889d39b5
authored
May 28, 2013
by
antirez
Browse files
Accept REPLCONF in any state.
parent
1b87b3ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
889d39b5
...
...
@@ -221,7 +221,7 @@ struct redisCommand redisCommandTable[] = {
{
"discard"
,
discardCommand
,
1
,
"rs"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"sync"
,
syncCommand
,
1
,
"ars"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"psync"
,
syncCommand
,
3
,
"ars"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"replconf"
,
replconfCommand
,
-
1
,
"ars"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"replconf"
,
replconfCommand
,
-
1
,
"ars
lt
"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"flushdb"
,
flushdbCommand
,
1
,
"w"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"flushall"
,
flushallCommand
,
1
,
"w"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"sort"
,
sortCommand
,
-
2
,
"wm"
,
0
,
NULL
,
1
,
1
,
1
,
0
,
0
},
...
...
@@ -1772,9 +1772,10 @@ int processCommand(redisClient *c) {
return
REDIS_OK
;
}
/* Lua script too slow? Only allow
commands with REDIS_CMD_STALE flag
. */
/* Lua script too slow? Only allow
a limited number of commands
. */
if
(
server
.
lua_timedout
&&
c
->
cmd
->
proc
!=
authCommand
&&
c
->
cmd
->
proc
!=
replconfCommand
&&
!
(
c
->
cmd
->
proc
==
shutdownCommand
&&
c
->
argc
==
2
&&
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