From decd4e8622be6e5f4aa27c9199fde783fd6cba37 Mon Sep 17 00:00:00 2001 From: zhaoliwei Date: Thu, 5 Mar 2020 11:38:35 +0800 Subject: [PATCH] format --- src/redis_protocol/proxy_lib/redis_parser.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/redis_protocol/proxy_lib/redis_parser.cpp b/src/redis_protocol/proxy_lib/redis_parser.cpp index a931532207..76b64d4c7a 100644 --- a/src/redis_protocol/proxy_lib/redis_parser.cpp +++ b/src/redis_protocol/proxy_lib/redis_parser.cpp @@ -681,9 +681,11 @@ void redis_parser::del_internal(message_entry &entry) simple_error_reply(entry, "internal error " + std::to_string(rrdb_response.error)); } else { - // NOTE: Deleting a non-existed key returns 1 too. But standard Redis returns 0. Pegasus behaves + // NOTE: Deleting a non-existed key returns 1 too. But standard Redis returns 0. + // Pegasus behaves // differently in this case intentionally for performance. - // Because if we need to check the existence, we should use check_and_mutate instead. + // Because if we need to check the existence, we should use check_and_mutate + // instead. simple_integer_reply(entry, 1); } }