From 70d7091c317f10ec243894d003428d214c00e245 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Sun, 7 May 2023 21:41:42 +0200 Subject: [PATCH] mysql client: more details about compression settings --- client/mysql.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/mysql.cc b/client/mysql.cc index 50587cf01bb4..cbff5cadf946 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -4909,7 +4909,9 @@ static int com_status(String *buffer [[maybe_unused]], tee_fprintf(stdout, "TCP port:\t\t%d\n", mysql.port); else tee_fprintf(stdout, "UNIX socket:\t\t%s\n", mysql.unix_socket); - if (mysql.net.compress) tee_fprintf(stdout, "Protocol:\t\tCompressed\n"); + if (mysql.net.compress) tee_fprintf(stdout, + "Protocol:\t\tCompressed, algorithms: %s, zstd level: %d\n", + opt_compress_algorithm, opt_zstd_compress_level); if (opt_binhex) tee_fprintf(stdout, "Binary data as:\t\tHexadecimal\n"); if (mysql_get_ssl_session_reused(&mysql)) tee_fprintf(stdout, "SSL session reused:\ttrue\n");