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
aced0328
Commit
aced0328
authored
Jan 11, 2019
by
antirez
Browse files
ACL: avoid a radix tree lookup for the default user.
parent
7f831476
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
aced0328
...
...
@@ -119,7 +119,7 @@ client *createClient(int fd) {
c
->
argc
=
0
;
c
->
argv
=
NULL
;
c
->
cmd
=
c
->
lastcmd
=
NULL
;
c
->
user
=
ACLGetUserByName
(
"d
efault
"
,
7
)
;
c
->
user
=
D
efault
User
;
c
->
multibulklen
=
0
;
c
->
bulklen
=
-
1
;
c
->
sentlen
=
0
;
...
...
src/server.h
View file @
aced0328
...
...
@@ -1685,6 +1685,7 @@ void sendChildInfo(int process_type);
void
receiveChildInfo
(
void
);
/* acl.c -- Authentication related prototypes. */
extern
user
*
DefaultUser
;
void
ACLInit
(
void
);
int
ACLCheckUserCredentials
(
robj
*
username
,
robj
*
password
);
unsigned
long
ACLGetCommandID
(
const
char
*
cmdname
);
...
...
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