MCPcopy Create free account
hub / github.com/F-Stack/f-stack / redactClientCommandArgument

Function redactClientCommandArgument

app/redis-6.2.6/src/networking.c:3087–3091  ·  view source on GitHub ↗

Redact a given argument to prevent it from being shown * in the slowlog. This information is stored in the * original_argv array. */

Source from the content-addressed store, hash-verified

3085 * in the slowlog. This information is stored in the
3086 * original_argv array. */
3087void redactClientCommandArgument(client *c, int argc) {
3088 retainOriginalCommandVector(c);
3089 decrRefCount(c->argv[argc]);
3090 c->original_argv[argc] = shared.redacted;
3091}
3092
3093/* Rewrite the command vector of the client. All the new objects ref count
3094 * is incremented. The old command vector is freed, and the old objects

Callers 5

configSetCommandFunction · 0.85
helloCommandFunction · 0.85
migrateCommandFunction · 0.85
aclCommandFunction · 0.85
authCommandFunction · 0.85

Calls 2

decrRefCountFunction · 0.85

Tested by

no test coverage detected