diff options
author | Dmitry Shulga <Dmitry.Shulga@oracle.com> | 2011-03-15 18:57:36 +0600 |
---|---|---|
committer | Dmitry Shulga <Dmitry.Shulga@oracle.com> | 2011-03-15 18:57:36 +0600 |
commit | 10f5982ee546f41df56dbf2f2933e29cc493db2b (patch) | |
tree | 0f5b82b368f0393b2467be245564bcd49d0933f9 /sql/sys_vars.cc | |
parent | 14df359b396b5eb3253826b4e81af7c41125e039 (diff) | |
parent | 6c2f5e306ca3fa621cd25cedd49181d6e0d5cbc6 (diff) | |
download | mariadb-git-10f5982ee546f41df56dbf2f2933e29cc493db2b.tar.gz |
Manual merge from mysql-5.1 for Bug#11764168 (56976: Severe denial
of service in prepared statements).
Diffstat (limited to 'sql/sys_vars.cc')
-rw-r--r-- | sql/sys_vars.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/sys_vars.cc b/sql/sys_vars.cc index 612ce48de0b..8f9b91f0f92 100644 --- a/sql/sys_vars.cc +++ b/sql/sys_vars.cc @@ -1182,6 +1182,16 @@ static Sys_var_harows Sys_sql_max_join_size( NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(0), ON_UPDATE(fix_max_join_size), DEPRECATED(70000, 0)); +static Sys_var_ulong Sys_max_long_data_size( + "max_long_data_size", + "The maximum BLOB length to send to server from " + "mysql_send_long_data API. Deprecated option; " + "use max_allowed_packet instead.", + READ_ONLY GLOBAL_VAR(max_long_data_size), + CMD_LINE(REQUIRED_ARG, OPT_MAX_LONG_DATA_SIZE), + VALID_RANGE(1024, UINT_MAX32), DEFAULT(1024*1024), + BLOCK_SIZE(1)); + static PolyLock_mutex PLock_prepared_stmt_count(&LOCK_prepared_stmt_count); static Sys_var_ulong Sys_max_prepared_stmt_count( "max_prepared_stmt_count", |