diff --git a/src/server.c b/src/server.c index 5c15d223..df948887 100644 --- a/src/server.c +++ b/src/server.c @@ -2202,6 +2202,8 @@ void populateCommandTable(void) { char *f = c->sflags; int retval1, retval2; + /* Translate the command string flags description into an actual + * set of flags. */ while(*f != '\0') { switch(*f) { case 'w': c->flags |= CMD_WRITE; break; @@ -2222,6 +2224,8 @@ void populateCommandTable(void) { f++; } + c->id = j; /* Sequential ID for each command. Used for ACLs. */ + retval1 = dictAdd(server.commands, sdsnew(c->name), c); /* Populate an additional dictionary that will be unaffected * by rename-command statements in redis.conf. */