mirror of https://mirror.osredm.com/root/redis.git
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…
Reference in New Issue