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