mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
[t:3935] #3935 Expand space available for panic string in engine status text (printed to error log).
git-svn-id: file:///svn/toku/tokudb@34490 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
7ff148c61b
commit
0881909006
1 changed files with 4 additions and 2 deletions
|
@ -1789,8 +1789,10 @@ static int
|
|||
env_get_engine_status(DB_ENV * env, ENGINE_STATUS * engstat, char * env_panic_string_buf, int env_panic_string_length) {
|
||||
int r;
|
||||
if (env_panic_string_buf) {
|
||||
if (env && env->i && env->i->is_panicked && env->i->panic_string)
|
||||
if (env && env->i && env->i->is_panicked && env->i->panic_string) {
|
||||
strncpy(env_panic_string_buf, env->i->panic_string, env_panic_string_length);
|
||||
env_panic_string_buf[env_panic_string_length - 1] = '\0'; // just in case
|
||||
}
|
||||
else
|
||||
*env_panic_string_buf = '\0';
|
||||
}
|
||||
|
@ -2043,7 +2045,7 @@ env_get_engine_status(DB_ENV * env, ENGINE_STATUS * engstat, char * env_panic_st
|
|||
static int
|
||||
env_get_engine_status_text(DB_ENV * env, char * buff, int bufsiz) {
|
||||
ENGINE_STATUS engstat;
|
||||
uint32_t stringsize = 80;
|
||||
uint32_t stringsize = 1024;
|
||||
char panicstring[stringsize];
|
||||
int n = 0; // number of characters printed so far
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue