MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / addReplyCommandCategories

Function addReplyCommandCategories

src/acl.cpp:2236–2246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2234}
2235
2236void addReplyCommandCategories(client *c, struct redisCommand *cmd) {
2237 int flagcount = 0;
2238 void *flaglen = addReplyDeferredLen(c);
2239 for (int j = 0; ACLCommandCategories[j].flag != 0; j++) {
2240 if (cmd->flags & ACLCommandCategories[j].flag) {
2241 addReplyStatusFormat(c, "@%s", ACLCommandCategories[j].name);
2242 flagcount++;
2243 }
2244 }
2245 setDeferredSetLen(c, flaglen, flagcount);
2246}
2247
2248/* AUTH <password>
2249 * AUTH <username> <password> (Redis >= 6.0 form)

Callers 1

addReplyCommandFunction · 0.85

Calls 3

addReplyDeferredLenFunction · 0.85
addReplyStatusFormatFunction · 0.85
setDeferredSetLenFunction · 0.85

Tested by

no test coverage detected