summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOran Agra <oran@redislabs.com>2023-03-22 15:57:03 +0200
committerGitHub <noreply@github.com>2023-03-22 15:57:03 +0200
commit3c4def561aaa8ccdf247f53995f67b9ca7441ec8 (patch)
tree758fe22be9e4897051777cea29754756edcc3c97 /src
parentd38df59a3f79c3781e98f8b94f4296fa0ad6d25f (diff)
downloadredis-3c4def561aaa8ccdf247f53995f67b9ca7441ec8.tar.gz
Fix reply schema validator with RESET command (#11953)
The reply schema validator is failing since the recent changes to introspection.tcl that use the RESET command, this happens because this test forces RESP3, but RESET command didn't respect that and set back RESP2.
Diffstat (limited to 'src')
-rw-r--r--src/networking.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/networking.c b/src/networking.c
index e0716b8a4..ea54697df 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -1498,7 +1498,11 @@ void clearClientConnectionState(client *c) {
if (c->flags & CLIENT_TRACKING) disableTracking(c);
selectDb(c,0);
+#ifdef LOG_REQ_RES
+ c->resp = server.client_default_resp;
+#else
c->resp = 2;
+#endif
clientSetDefaultAuth(c);
moduleNotifyUserChanged(c);