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

Function redactClientCommandArgument

src/networking.cpp:3724–3728  ·  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

3722 * in the slowlog. This information is stored in the
3723 * original_argv array. */
3724void redactClientCommandArgument(client *c, int argc) {
3725 retainOriginalCommandVector(c);
3726 decrRefCount(c->argv[argc]);
3727 c->original_argv[argc] = shared.redacted;
3728}
3729
3730/* Rewrite the command vector of the client. All the new objects ref count
3731 * is incremented. The old command vector is freed, and the old objects

Callers 5

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

Calls 2

decrRefCountFunction · 0.85

Tested by

no test coverage detected