From e809abcf464147770132a0a3f01a8a4175d54ef3 Mon Sep 17 00:00:00 2001 From: "zhaozhao.zz" Date: Tue, 12 Nov 2024 18:40:47 +0800 Subject: [PATCH] make clang-format happy Signed-off-by: zhaozhao.zz --- src/commandlog.h | 10 +++++----- src/server.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/commandlog.h b/src/commandlog.h index 4fd50c4fbf..286f055358 100644 --- a/src/commandlog.h +++ b/src/commandlog.h @@ -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 */ diff --git a/src/server.c b/src/server.c index 420821e58b..404328a0d7 100644 --- a/src/server.c +++ b/src/server.c @@ -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