Redact a given argument to prevent it from being shown * in the slowlog. This information is stored in the * original_argv array. */
| 3085 | * in the slowlog. This information is stored in the |
| 3086 | * original_argv array. */ |
| 3087 | void 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 |
no test coverage detected