mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
refs #5686 fix a crash during assert
git-svn-id: file:///svn/toku/tokudb@49989 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
c4e345271d
commit
49b2b3ebc4
1 changed files with 3 additions and 3 deletions
|
@ -1948,10 +1948,10 @@ env_get_engine_status_text(DB_ENV * env, char * buff, int bufsiz) {
|
|||
if (r) {
|
||||
n += snprintf(buff + n, bufsiz - n, "Engine status not available: ");
|
||||
if (!env) {
|
||||
n += snprintf(buff + n, bufsiz - n, "no environment\n");
|
||||
n += snprintf(buff + n, bufsiz - n, "no environment\n");
|
||||
}
|
||||
else if (!(env->i)) {
|
||||
n += snprintf(buff + n, bufsiz - n, "environment internal struct is null\n");
|
||||
n += snprintf(buff + n, bufsiz - n, "environment internal struct is null\n");
|
||||
}
|
||||
else if (!env_opened(env)) {
|
||||
n += snprintf(buff + n, bufsiz - n, "environment is not open\n");
|
||||
|
@ -2025,7 +2025,7 @@ static int
|
|||
toku_maybe_get_engine_status_text (char * buff, int buffsize) {
|
||||
DB_ENV * env = most_recent_env;
|
||||
int r;
|
||||
if (engine_status_enable) {
|
||||
if (engine_status_enable && env != NULL) {
|
||||
r = env_get_engine_status_text(env, buff, buffsize);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Reference in a new issue