Skip to content

Commit

Permalink
codership/mysql-wsrep#348 Increase MYSQL_MAX_VARIABLE_VALUE_LEN
Browse files Browse the repository at this point in the history
Increased MYSQL_MAX_VARIABLE_VALUE_LEN to 4096 in order to allow
longer wsrep_provider_option strings.

Recorded main.show_check.
  • Loading branch information
temeo authored and Jan Lindström committed Jan 31, 2019
1 parent c28d7ac commit 5e0117f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmake/wsrep.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ ENDIF()

OPTION(WITH_WSREP "WSREP replication API (to use, e.g. Galera Replication library)" ON)
IF (WITH_WSREP)
SET(WSREP_C_FLAGS "-DWITH_WSREP -DWSREP_PROC_INFO -DMYSQL_MAX_VARIABLE_VALUE_LEN=2048")
SET(WSREP_C_FLAGS "-DWITH_WSREP -DWSREP_PROC_INFO -DMYSQL_MAX_VARIABLE_VALUE_LEN=4096")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WSREP_C_FLAGS}")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WSREP_C_FLAGS}")
SET(COMPILATION_COMMENT "${COMPILATION_COMMENT}, wsrep_${WSREP_VERSION}")
Expand Down
6 changes: 3 additions & 3 deletions mysql-test/r/show_check.result
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,19 @@ drop table t1;
show variables like "wait_timeout%";
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def information_schema VARIABLES VARIABLES VARIABLE_NAME Variable_name 253 64 12 N 1 0 8
def information_schema VARIABLES VARIABLES VARIABLE_VALUE Value 253 2048 5 Y 0 0 8
def information_schema VARIABLES VARIABLES VARIABLE_VALUE Value 253 4096 5 Y 0 0 8
Variable_name Value
wait_timeout 28800
show variables like "WAIT_timeout%";
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def information_schema VARIABLES VARIABLES VARIABLE_NAME Variable_name 253 64 12 N 1 0 8
def information_schema VARIABLES VARIABLES VARIABLE_VALUE Value 253 2048 5 Y 0 0 8
def information_schema VARIABLES VARIABLES VARIABLE_VALUE Value 253 4096 5 Y 0 0 8
Variable_name Value
wait_timeout 28800
show variables like "this_doesn't_exists%";
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def information_schema VARIABLES VARIABLES VARIABLE_NAME Variable_name 253 64 0 N 1 0 8
def information_schema VARIABLES VARIABLES VARIABLE_VALUE Value 253 2048 0 Y 0 0 8
def information_schema VARIABLES VARIABLES VARIABLE_VALUE Value 253 4096 0 Y 0 0 8
Variable_name Value
show table status from test like "this_doesn't_exists%";
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
Expand Down
2 changes: 1 addition & 1 deletion scripts/mysql_config.pl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
my $basedir;

my $socket = '/tmp/mysql.sock';
my $version = '5.5.61';
my $version = '5.5.62';

sub which
{
Expand Down

0 comments on commit 5e0117f

Please sign in to comment.