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
33f613bf
Unverified
Commit
33f613bf
authored
Feb 06, 2020
by
Salvatore Sanfilippo
Committed by
GitHub
Feb 06, 2020
Browse files
Merge pull request #6843 from oranagra/command_flags
A few non-data commands that should be allowed while loading or stale
parents
4aafdb18
ac2c96f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
33f613bf
...
@@ -579,7 +579,7 @@ struct redisCommand redisCommandTable[] = {
...
@@ -579,7 +579,7 @@ struct redisCommand redisCommandTable[] = {
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"select"
,
selectCommand
,
2
,
{
"select"
,
selectCommand
,
2
,
"ok-loading fast @keyspace"
,
"ok-loading fast
ok-stale
@keyspace"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"swapdb"
,
swapdbCommand
,
3
,
{
"swapdb"
,
swapdbCommand
,
3
,
...
@@ -660,7 +660,7 @@ struct redisCommand redisCommandTable[] = {
...
@@ -660,7 +660,7 @@ struct redisCommand redisCommandTable[] = {
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"lastsave"
,
lastsaveCommand
,
1
,
{
"lastsave"
,
lastsaveCommand
,
1
,
"read-only random fast @admin @dangerous"
,
"read-only random fast
ok-loading ok-stale
@admin @dangerous"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"type"
,
typeCommand
,
2
,
{
"type"
,
typeCommand
,
2
,
...
@@ -708,7 +708,7 @@ struct redisCommand redisCommandTable[] = {
...
@@ -708,7 +708,7 @@ struct redisCommand redisCommandTable[] = {
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"monitor"
,
monitorCommand
,
1
,
{
"monitor"
,
monitorCommand
,
1
,
"admin no-script"
,
"admin no-script
ok-loading ok-stale
"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"ttl"
,
ttlCommand
,
2
,
{
"ttl"
,
ttlCommand
,
2
,
...
@@ -740,7 +740,7 @@ struct redisCommand redisCommandTable[] = {
...
@@ -740,7 +740,7 @@ struct redisCommand redisCommandTable[] = {
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"debug"
,
debugCommand
,
-
2
,
{
"debug"
,
debugCommand
,
-
2
,
"admin no-script"
,
"admin no-script
ok-loading ok-stale
"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"config"
,
configCommand
,
-
2
,
{
"config"
,
configCommand
,
-
2
,
...
@@ -820,11 +820,11 @@ struct redisCommand redisCommandTable[] = {
...
@@ -820,11 +820,11 @@ struct redisCommand redisCommandTable[] = {
0
,
memoryGetKeys
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
memoryGetKeys
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"client"
,
clientCommand
,
-
2
,
{
"client"
,
clientCommand
,
-
2
,
"admin no-script random @connection"
,
"admin no-script random
ok-loading ok-stale
@connection"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"hello"
,
helloCommand
,
-
2
,
{
"hello"
,
helloCommand
,
-
2
,
"no-auth no-script fast no-monitor no-slowlog @connection"
,
"no-auth no-script fast no-monitor
ok-loading ok-stale
no-slowlog @connection"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
/* EVAL can modify the dataset, however it is not flagged as a write
/* EVAL can modify the dataset, however it is not flagged as a write
...
@@ -838,7 +838,7 @@ struct redisCommand redisCommandTable[] = {
...
@@ -838,7 +838,7 @@ struct redisCommand redisCommandTable[] = {
0
,
evalGetKeys
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
evalGetKeys
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"slowlog"
,
slowlogCommand
,
-
2
,
{
"slowlog"
,
slowlogCommand
,
-
2
,
"admin random"
,
"admin random
ok-loading ok-stale
"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"script"
,
scriptCommand
,
-
2
,
{
"script"
,
scriptCommand
,
-
2
,
...
@@ -846,7 +846,7 @@ struct redisCommand redisCommandTable[] = {
...
@@ -846,7 +846,7 @@ struct redisCommand redisCommandTable[] = {
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"time"
,
timeCommand
,
1
,
{
"time"
,
timeCommand
,
1
,
"read-only random fast"
,
"read-only random fast
ok-loading ok-stale
"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"bitop"
,
bitopCommand
,
-
4
,
{
"bitop"
,
bitopCommand
,
-
4
,
...
...
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