From 3c4def561aaa8ccdf247f53995f67b9ca7441ec8 Mon Sep 17 00:00:00 2001 From: Oran Agra Date: Wed, 22 Mar 2023 15:57:03 +0200 Subject: 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. --- src/networking.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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); -- cgit v1.2.1