From d94fddae0a094035ae2416416d39e1c4d078628d Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Tue, 28 Nov 2023 18:49:39 +0200 Subject: [PATCH] Add more detail to the panic messages in blocked.cpp --- src/blocked.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/blocked.cpp b/src/blocked.cpp index 56df022ea..e10985156 100644 --- a/src/blocked.cpp +++ b/src/blocked.cpp @@ -208,7 +208,8 @@ void unblockClient(client *c) { listDelNode(g_pserver->paused_clients,c->paused_list_node); c->paused_list_node = NULL; } else { - serverPanic("Unknown btype in unblockClient()."); + serverPanic("Unknown btype %d in unblockClient() for client %llu.", + c->btype, (unsigned long long) c->id); } /* Reset the client for a new query since, for blocking commands @@ -243,7 +244,8 @@ void replyToBlockedClientTimedOut(client *c) { } else if (c->btype == BLOCKED_MODULE) { moduleBlockedClientTimedOut(c); } else { - serverPanic("Unknown btype in replyToBlockedClientTimedOut()."); + serverPanic("Unknown btype %d in replyToBlockedClientTimedOut() for client %llu.", + c->btype, (unsigned long long) c->id); } }