mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 08:41:21 +00:00
ACL: use a fixed table for command IDs.
This commit is contained in:
@ -2224,8 +2224,7 @@ void populateCommandTable(void) {
|
||||
f++;
|
||||
}
|
||||
|
||||
c->id = j; /* Sequential ID for each command. Used for ACLs. */
|
||||
|
||||
c->id = ACLGetCommandID(c->name); /* Assign the ID used for ACL. */
|
||||
retval1 = dictAdd(server.commands, sdsnew(c->name), c);
|
||||
/* Populate an additional dictionary that will be unaffected
|
||||
* by rename-command statements in redis.conf. */
|
||||
|
Reference in New Issue
Block a user