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
2da2e452
Commit
2da2e452
authored
Jan 14, 2019
by
antirez
Browse files
ACL: ACLLCOMMAND flags.
parent
648411eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.h
View file @
2da2e452
...
@@ -713,6 +713,7 @@ typedef struct readyList {
...
@@ -713,6 +713,7 @@ typedef struct readyList {
#define USER_MAX_COMMAND_BIT 1024
#define USER_MAX_COMMAND_BIT 1024
#define USER_FLAG_ENABLED (1<<0)
/* The user is active. */
#define USER_FLAG_ENABLED (1<<0)
/* The user is active. */
#define USER_FLAG_ALLKEYS (1<<1)
/* The user can mention any key. */
#define USER_FLAG_ALLKEYS (1<<1)
/* The user can mention any key. */
#define USER_FLAG_ALLCOMMANDS (1<<2)
/* The user can run all commands. */
typedef
struct
user
{
typedef
struct
user
{
uint64_t
flags
;
/* See USER_FLAG_* */
uint64_t
flags
;
/* See USER_FLAG_* */
...
@@ -755,7 +756,9 @@ typedef struct client {
...
@@ -755,7 +756,9 @@ typedef struct client {
int
argc
;
/* Num of arguments of current command. */
int
argc
;
/* Num of arguments of current command. */
robj
**
argv
;
/* Arguments of current command. */
robj
**
argv
;
/* Arguments of current command. */
struct
redisCommand
*
cmd
,
*
lastcmd
;
/* Last command executed. */
struct
redisCommand
*
cmd
,
*
lastcmd
;
/* Last command executed. */
user
*
user
;
/* User associated with this connection. */
user
*
user
;
/* User associated with this connection. If the
user is set to NULL the connection can do
anything (admin). */
int
reqtype
;
/* Request protocol type: PROTO_REQ_* */
int
reqtype
;
/* Request protocol type: PROTO_REQ_* */
int
multibulklen
;
/* Number of multi bulk arguments left to read. */
int
multibulklen
;
/* Number of multi bulk arguments left to read. */
long
bulklen
;
/* Length of bulk argument in multi bulk request. */
long
bulklen
;
/* Length of bulk argument in multi bulk request. */
...
...
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