Commit 665f452e authored by Barry Perlman's avatar Barry Perlman Committed by Yoni Fogel

[t:3033] Add panic information to engine status. If env or logger is panicked, say so and say why.

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@25479 c7de825b-a66e-492c-adef-691d508d4ae1
parent cfded943
...@@ -166,7 +166,6 @@ F77 = @F77@ ...@@ -166,7 +166,6 @@ F77 = @F77@
FFLAGS = @FFLAGS@ FFLAGS = @FFLAGS@
FIND_PROC = @FIND_PROC@ FIND_PROC = @FIND_PROC@
GETCONF = @GETCONF@ GETCONF = @GETCONF@
GREP = @GREP@
GXX = @GXX@ GXX = @GXX@
HAVE_NETWARE_FALSE = @HAVE_NETWARE_FALSE@ HAVE_NETWARE_FALSE = @HAVE_NETWARE_FALSE@
HAVE_NETWARE_TRUE = @HAVE_NETWARE_TRUE@ HAVE_NETWARE_TRUE = @HAVE_NETWARE_TRUE@
...@@ -278,9 +277,14 @@ YACC = @YACC@ ...@@ -278,9 +277,14 @@ YACC = @YACC@
ZLIB_DEPS = @ZLIB_DEPS@ ZLIB_DEPS = @ZLIB_DEPS@
ZLIB_INCLUDES = @ZLIB_INCLUDES@ ZLIB_INCLUDES = @ZLIB_INCLUDES@
ZLIB_LIBS = @ZLIB_LIBS@ ZLIB_LIBS = @ZLIB_LIBS@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@ ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@ ac_ct_CXX = @ac_ct_CXX@
ac_ct_F77 = @ac_ct_F77@ ac_ct_F77 = @ac_ct_F77@
ac_ct_GETCONF = @ac_ct_GETCONF@
ac_ct_NM = @ac_ct_NM@
ac_ct_RANLIB = @ac_ct_RANLIB@
ac_ct_STRIP = @ac_ct_STRIP@
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
...@@ -301,10 +305,7 @@ condition_dependent_plugin_links = @condition_dependent_plugin_links@ ...@@ -301,10 +305,7 @@ condition_dependent_plugin_links = @condition_dependent_plugin_links@
condition_dependent_plugin_modules = @condition_dependent_plugin_modules@ condition_dependent_plugin_modules = @condition_dependent_plugin_modules@
condition_dependent_plugin_objects = @condition_dependent_plugin_objects@ condition_dependent_plugin_objects = @condition_dependent_plugin_objects@
datadir = @datadir@ datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
docs_dirs = @docs_dirs@ docs_dirs = @docs_dirs@
dvidir = @dvidir@
exec_prefix = @exec_prefix@ exec_prefix = @exec_prefix@
extra_docs = @extra_docs@ extra_docs = @extra_docs@
host = @host@ host = @host@
...@@ -312,7 +313,6 @@ host_alias = @host_alias@ ...@@ -312,7 +313,6 @@ host_alias = @host_alias@
host_cpu = @host_cpu@ host_cpu = @host_cpu@
host_os = @host_os@ host_os = @host_os@
host_vendor = @host_vendor@ host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@ includedir = @includedir@
infodir = @infodir@ infodir = @infodir@
innodb_system_libs = @innodb_system_libs@ innodb_system_libs = @innodb_system_libs@
...@@ -320,7 +320,6 @@ install_sh = @install_sh@ ...@@ -320,7 +320,6 @@ install_sh = @install_sh@
libdir = @libdir@ libdir = @libdir@
libexecdir = @libexecdir@ libexecdir = @libexecdir@
libmysqld_dirs = @libmysqld_dirs@ libmysqld_dirs = @libmysqld_dirs@
localedir = @localedir@
localstatedir = @localstatedir@ localstatedir = @localstatedir@
man1_files = @man1_files@ man1_files = @man1_files@
man8_files = @man8_files@ man8_files = @man8_files@
...@@ -349,7 +348,6 @@ netware_dir = @netware_dir@ ...@@ -349,7 +348,6 @@ netware_dir = @netware_dir@
oldincludedir = @oldincludedir@ oldincludedir = @oldincludedir@
openssl_includes = @openssl_includes@ openssl_includes = @openssl_includes@
openssl_libs = @openssl_libs@ openssl_libs = @openssl_libs@
pdfdir = @pdfdir@
plugin_archive_shared_target = @plugin_archive_shared_target@ plugin_archive_shared_target = @plugin_archive_shared_target@
plugin_archive_static_target = @plugin_archive_static_target@ plugin_archive_static_target = @plugin_archive_static_target@
plugin_blackhole_shared_target = @plugin_blackhole_shared_target@ plugin_blackhole_shared_target = @plugin_blackhole_shared_target@
...@@ -380,7 +378,6 @@ plugin_tokudb_shared_target = @plugin_tokudb_shared_target@ ...@@ -380,7 +378,6 @@ plugin_tokudb_shared_target = @plugin_tokudb_shared_target@
plugin_tokudb_static_target = @plugin_tokudb_static_target@ plugin_tokudb_static_target = @plugin_tokudb_static_target@
prefix = @prefix@ prefix = @prefix@
program_transform_name = @program_transform_name@ program_transform_name = @program_transform_name@
psdir = @psdir@
pstack_dir = @pstack_dir@ pstack_dir = @pstack_dir@
pstack_libs = @pstack_libs@ pstack_libs = @pstack_libs@
readline_basedir = @readline_basedir@ readline_basedir = @readline_basedir@
......
...@@ -954,8 +954,23 @@ static bool tokudb_show_engine_status(THD * thd, stat_print_fn * stat_print) { ...@@ -954,8 +954,23 @@ static bool tokudb_show_engine_status(THD * thd, stat_print_fn * stat_print) {
ENGINE_STATUS engstat; ENGINE_STATUS engstat;
error = db_env->get_engine_status(db_env, &engstat); error = db_env->get_engine_status(db_env, &engstat, buf, bufsiz);
if (strlen(buf)) {
STATPRINT("Environment panic string", buf);
}
if (error == 0) { if (error == 0) {
if (engstat.env_panic) {
snprintf(buf, bufsiz, "%" PRIu64, engstat.env_panic);
STATPRINT("Environment panic", buf);
}
if (engstat.logger_panic) {
snprintf(buf, bufsiz, "%" PRIu64, engstat.logger_panic);
STATPRINT("logger panic", buf);
snprintf(buf, bufsiz, "%" PRIu64, engstat.logger_panic_errno);
STATPRINT("logger panic errno", buf);
}
if(engstat.enospc_threads_blocked) { if(engstat.enospc_threads_blocked) {
STATPRINT("*** URGENT WARNING ***", "FILE SYSTEM IS COMPLETELY FULL"); STATPRINT("*** URGENT WARNING ***", "FILE SYSTEM IS COMPLETELY FULL");
snprintf(buf, bufsiz, "FILE SYSTEM IS COMPLETELY FULL"); snprintf(buf, bufsiz, "FILE SYSTEM IS COMPLETELY FULL");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment