mirror of
https://github.com/fluencelabs/redis
synced 2025-06-29 08:51:33 +00:00
better bug report info on crash (backported from unstable)
This commit is contained in:
@ -236,6 +236,7 @@
|
||||
#define redisPanic(_e) _redisPanic(#_e,__FILE__,__LINE__),_exit(1)
|
||||
void _redisAssert(char *estr, char *file, int line);
|
||||
void _redisPanic(char *msg, char *file, int line);
|
||||
void bugReportStart(void);
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
* Data types
|
||||
@ -534,6 +535,11 @@ struct redisServer {
|
||||
/* Misc */
|
||||
unsigned lruclock:22; /* clock incrementing every minute, for LRU */
|
||||
unsigned lruclock_padding:10;
|
||||
/* Assert & bug reportign */
|
||||
char *assert_failed;
|
||||
char *assert_file;
|
||||
int assert_line;
|
||||
int bug_report_start; /* True if bug report header already logged. */
|
||||
};
|
||||
|
||||
typedef struct pubsubPattern {
|
||||
|
Reference in New Issue
Block a user