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
91f1d802
Commit
91f1d802
authored
Jan 09, 2019
by
antirez
Browse files
ACL: introduce the concept of command ID.
parent
42271cff
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
src/server.c
View file @
91f1d802
This diff is collapsed.
Click to expand it.
src/server.h
View file @
91f1d802
...
@@ -1305,6 +1305,11 @@ struct redisCommand {
...
@@ -1305,6 +1305,11 @@ struct redisCommand {
int
lastkey
;
/* The last argument that's a key */
int
lastkey
;
/* The last argument that's a key */
int
keystep
;
/* The step between first and last key */
int
keystep
;
/* The step between first and last key */
long
long
microseconds
,
calls
;
long
long
microseconds
,
calls
;
int
id
;
/* Command ID. This is a progressive ID starting from 0 that
is assigned at runtime, and is used in order to check
ACLs. A connection is able to execute a given command if
the user associated to the connection has this command
bit set in the bitmap of allowed commands. */
};
};
struct
redisFunctionSym
{
struct
redisFunctionSym
{
...
...
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