diff --git a/src/main.cpp b/src/main.cpp index 76f02a073..de0f7e3d6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1978,13 +1978,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); } - } - - #ifdef DEBUG { // This run some ProxyProtocolInfo tests. @@ -1994,7 +1987,6 @@ int main(int argc, const char * argv[]) { } #endif // DEBUG - { MYSQL *my = mysql_init(NULL); mysql_close(my); @@ -2022,6 +2014,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);