Skip to content

Commit

Permalink
make clang-format happy
Browse files Browse the repository at this point in the history
Signed-off-by: zhaozhao.zz <[email protected]>
  • Loading branch information
soloestoy committed Nov 12, 2024
1 parent df4f9f3 commit e809abc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/commandlog.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
typedef struct commandlogEntry {
robj **argv;
int argc;
long long id; /* Unique entry identifier. */
long long value; /* The meaning is determined by the type of command log. */
time_t time; /* Unix time at which the query was executed. */
sds cname; /* Client name. */
sds peerid; /* Client network address. */
long long id; /* Unique entry identifier. */
long long value; /* The meaning is determined by the type of command log. */
time_t time; /* Unix time at which the query was executed. */
sds cname; /* Client name. */
sds peerid; /* Client network address. */
} commandlogEntry;

/* Exported API */
Expand Down
2 changes: 1 addition & 1 deletion src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -3302,7 +3302,7 @@ void preventCommandReplication(client *c) {
/* Log the last command a client executed into the commandlog. */
void commandlogPushCurrentCommand(client *c, struct serverCommand *cmd) {
/* Some commands may contain sensitive data that should not be available in the commandlog.
*/
*/
if (cmd->flags & CMD_SKIP_COMMANDLOG) return;

/* If command argument vector was rewritten, use the original
Expand Down

0 comments on commit e809abc

Please sign in to comment.