From a3099a3b4a394da360b5c1e7ae6dc985ae2f7f2f Mon Sep 17 00:00:00 2001 From: Oleksandr Byelkin Date: Wed, 18 Nov 2020 16:04:57 +0100 Subject: MDEV-24312 master_host has 60 character limit, increase to 255 bytes Also increase user name up to 128. The work was started by Rucha Deodhar , contains audit plugin fixes by Alexey Botchkov . --- sql/sql_const.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/sql_const.h') diff --git a/sql/sql_const.h b/sql/sql_const.h index 3f053a1606d..762728aa876 100644 --- a/sql/sql_const.h +++ b/sql/sql_const.h @@ -49,7 +49,7 @@ #else #define MAX_REFLENGTH 4 /* Max length for record ref */ #endif -#define MAX_HOSTNAME 61 /* len+1 in mysql.user */ +#define MAX_HOSTNAME (HOSTNAME_LENGTH + 1) /* len+1 in mysql.user */ #define MAX_CONNECTION_NAME NAME_LEN #define MAX_MBWIDTH 3 /* Max multibyte sequence */ -- cgit v1.2.1