Merge branch 'unstable' of https://github.com/JohnSully/KeyDB into unstable
Former-commit-id: 1449c8b9fe647288da7de0ff10cc68ada4be8f92
This commit is contained in:
commit
2bb0be3a96
@ -376,9 +376,9 @@ dir ./
|
||||
#
|
||||
# However this is not enough if you are using KeyDB ACLs (for Redis version
|
||||
# 6 or greater), and the default user is not capable of running the PSYNC
|
||||
# command and/or other commands needed for replication. In this case it's
|
||||
# better to configure a special user to use with replication, and specify the
|
||||
# masteruser configuration as such:
|
||||
# command and/or other commands needed for replication (gathered in the
|
||||
# @replication group). In this case it's better to configure a special user to
|
||||
# use with replication, and specify the masteruser configuration as such:
|
||||
#
|
||||
# masteruser <username>
|
||||
#
|
||||
|
@ -80,6 +80,7 @@ struct ACLCategoryItem {
|
||||
{"connection", CMD_CATEGORY_CONNECTION},
|
||||
{"transaction", CMD_CATEGORY_TRANSACTION},
|
||||
{"scripting", CMD_CATEGORY_SCRIPTING},
|
||||
{"replication", CMD_CATEGORY_REPLICATION},
|
||||
{NULL,0} /* Terminator. */
|
||||
};
|
||||
|
||||
|
@ -18,7 +18,8 @@ static char *commandGroups[] = {
|
||||
"hyperloglog",
|
||||
"cluster",
|
||||
"geo",
|
||||
"stream"
|
||||
"stream",
|
||||
"replication"
|
||||
};
|
||||
|
||||
struct commandHelp {
|
||||
|
@ -180,7 +180,7 @@ volatile unsigned long lru_clock; /* Server global current LRU time. */
|
||||
*
|
||||
* @keyspace, @read, @write, @set, @sortedset, @list, @hash, @string, @bitmap,
|
||||
* @hyperloglog, @stream, @admin, @fast, @slow, @pubsub, @blocking, @dangerous,
|
||||
* @connection, @transaction, @scripting, @geo.
|
||||
* @connection, @transaction, @scripting, @geo, @replication.
|
||||
*
|
||||
* Note that:
|
||||
*
|
||||
@ -673,7 +673,7 @@ struct redisCommand redisCommandTable[] = {
|
||||
* failure detection, and a loading server is considered to be
|
||||
* not available. */
|
||||
{"ping",pingCommand,-1,
|
||||
"ok-stale fast @connection",
|
||||
"ok-stale fast @connection @replication",
|
||||
0,NULL,0,0,0,0,0,0},
|
||||
|
||||
{"echo",echoCommand,2,
|
||||
@ -717,15 +717,15 @@ struct redisCommand redisCommandTable[] = {
|
||||
0,NULL,0,0,0,0,0,0},
|
||||
|
||||
{"sync",syncCommand,1,
|
||||
"admin no-script",
|
||||
"admin no-script @replication",
|
||||
0,NULL,0,0,0,0,0,0},
|
||||
|
||||
{"psync",syncCommand,3,
|
||||
"admin no-script",
|
||||
"admin no-script @replication",
|
||||
0,NULL,0,0,0,0,0,0},
|
||||
|
||||
{"replconf",replconfCommand,-1,
|
||||
"admin no-script ok-loading ok-stale",
|
||||
"admin no-script ok-loading ok-stale @replication",
|
||||
0,NULL,0,0,0,0,0,0},
|
||||
|
||||
{"flushdb",flushdbCommand,-1,
|
||||
|
@ -373,7 +373,8 @@ public:
|
||||
#define CMD_CATEGORY_CONNECTION (1ULL<<36)
|
||||
#define CMD_CATEGORY_TRANSACTION (1ULL<<37)
|
||||
#define CMD_CATEGORY_SCRIPTING (1ULL<<38)
|
||||
#define CMD_SKIP_PROPOGATE (1ULL<<39) /* "noprop" flag */
|
||||
#define CMD_CATEGORY_REPLICATION (1ULL<<39)
|
||||
#define CMD_SKIP_PROPOGATE (1ULL<<40) /* "noprop" flag */
|
||||
|
||||
/* AOF states */
|
||||
#define AOF_OFF 0 /* AOF is off */
|
||||
|
@ -15,7 +15,8 @@ GROUPS = [
|
||||
"hyperloglog",
|
||||
"cluster",
|
||||
"geo",
|
||||
"stream"
|
||||
"stream",
|
||||
"replication"
|
||||
].freeze
|
||||
|
||||
GROUPS_BY_NAME = Hash[*
|
||||
|
Loading…
x
Reference in New Issue
Block a user