Skip to content

Commit

Permalink
Add more detail to the panic messages in blocked.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
SpecLad authored and JohnSully committed Mar 8, 2024
1 parent 2ad14de commit d94fdda
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/blocked.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
}

Expand Down

0 comments on commit d94fdda

Please sign in to comment.