From 20b005cd1e45878f07fc886002015c9a475d0c27 Mon Sep 17 00:00:00 2001 From: "lvyanqi.lyq" Date: Wed, 13 Nov 2024 18:41:18 +0800 Subject: [PATCH] clang-format Signed-off-by: lvyanqi.lyq --- src/db.c | 6 +++--- src/expire.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/db.c b/src/db.c index dfc3e4a77f..6c08db54e9 100644 --- a/src/db.c +++ b/src/db.c @@ -1832,9 +1832,9 @@ keyStatus expireIfNeededWithDictIndex(serverDb *db, robj *key, int flags, int di * the key expiration is controlled by the import source that will * send us synthesized DEL operations for expired keys. The * exception is when write operations are performed on this server - * because it's a primary. - * - * Notice: other clients, apart from the import source, should not access + * because it's a primary. + * + * Notice: other clients, apart from the import source, should not access * the data imported by import source. * * Still we try to return the right information to the caller, diff --git a/src/expire.c b/src/expire.c index 2dd57dc26d..c22df1ef86 100644 --- a/src/expire.c +++ b/src/expire.c @@ -521,8 +521,8 @@ int checkAlreadyExpired(long long when) { * * Instead we add the already expired key to the database with expire time * (possibly in the past) and wait for an explicit DEL from the primary. - * - * If the server is a primary and in the import mode, we also add the already + * + * If the server is a primary and in the import mode, we also add the already * expired key and wait for an explicit DEL from the import source. */ return (when <= commandTimeSnapshot() && !server.loading && !server.primary_host && !server.import_mode); }