On crash print information about the current client (if any), command vector, and object associated to first argument assuming it is a key.

This commit is contained in:
antirez
2012-01-12 16:02:57 +01:00
parent e1849b6456
commit fbfe656236
4 changed files with 69 additions and 1 deletions

View File

@ -400,6 +400,7 @@ struct redisServer {
/* Fast pointers to often looked up command */
struct redisCommand *delCommand, *multiCommand;
list *slaves, *monitors;
redisClient *current_client; /* Current client, only used on crash report */
char neterr[ANET_ERR_LEN];
aeEventLoop *el;
int cronloops; /* number of times the cron function run */
@ -1072,4 +1073,6 @@ void *malloc(size_t size) __attribute__ ((deprecated));
void *realloc(void *ptr, size_t size) __attribute__ ((deprecated));
#endif
void redisLogObjectDebugInfo(robj *o);
#endif