diff --git a/src/main.cpp b/src/main.cpp index f195bea15..ab9553234 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2293,11 +2293,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); } - } if (check_openssl_version() == false) { exit(EXIT_FAILURE); @@ -2312,7 +2307,6 @@ int main(int argc, const char * argv[]) { } #endif // DEBUG - { MYSQL *my = mysql_init(NULL); mysql_close(my); @@ -2340,6 +2334,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);