mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
ACL: ACLCheckUserCredentials() next id should be static.
This commit is contained in:
parent
7fc882c578
commit
45ff9f33d6
@ -102,7 +102,7 @@ int ACLCheckUserCredentials(robj *username, robj *password) {
|
||||
* are unloaded and later reloaded. */
|
||||
unsigned long ACLGetCommandID(const char *cmdname) {
|
||||
static rax *map = NULL;
|
||||
unsigned long nextid = 0;
|
||||
static unsigned long nextid = 0;
|
||||
|
||||
if (map == NULL) map = raxNew();
|
||||
void *id = raxFind(map,(unsigned char*)cmdname,strlen(cmdname));
|
||||
|
Loading…
x
Reference in New Issue
Block a user