diff --git a/src/main.cpp b/src/main.cpp index d98743a604..7bc8fa9cd0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1961,12 +1961,6 @@ int print_jemalloc_conf() { #endif int main(int argc, const char * argv[]) { - // Output current jemalloc conf; no action taken when disabled - { - int rc = print_jemalloc_conf(); - if (rc) { exit(EXIT_FAILURE); } - } - { MYSQL *my = mysql_init(NULL); mysql_close(my); @@ -1994,6 +1988,12 @@ int main(int argc, const char * argv[]) { #endif } + // Output current jemalloc conf; no action taken when disabled + { + int rc = print_jemalloc_conf(); + if (rc) { exit(EXIT_FAILURE); } + } + struct rlimit nlimit; { int rc = getrlimit(RLIMIT_NOFILE, &nlimit);