From e7819fe34e114986cc3b1508c454b0d1e4f48ffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Fri, 17 Jan 2025 18:26:31 +0100 Subject: [PATCH] Remove print of jemalloc conf prior to cmd options handling --- src/main.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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);