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

Function lookupCommandByCString

src/server.cpp:4326–4333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4324}
4325
4326struct redisCommand *lookupCommandByCString(const char *s) {
4327 struct redisCommand *cmd;
4328 sds name = sdsnew(s);
4329
4330 cmd = (struct redisCommand*)dictFetchValue(g_pserver->commands, name);
4331 sdsfree(name);
4332 return cmd;
4333}
4334
4335/* Lookup the command in the current table, if not found also check in
4336 * the original table containing the original command names unaffected by

Callers 4

initServerConfigFunction · 0.85
RM_ReplicateFunction · 0.85
RM_EmitAOFFunction · 0.85
executeCronJobExpireHookFunction · 0.85

Calls 3

sdsnewFunction · 0.85
dictFetchValueFunction · 0.85
sdsfreeFunction · 0.85

Tested by

no test coverage detected