Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
6999f40d
Commit
6999f40d
authored
Jun 02, 2009
by
Satya B
Browse files
Options
Browse Files
Download
Plain Diff
merge to 5.1-bugteam tree
parents
13f7a81b
fe5121af
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
5 deletions
+26
-5
mysql-test/r/variables.result
mysql-test/r/variables.result
+10
-0
mysql-test/t/variables.test
mysql-test/t/variables.test
+9
-0
sql/mysql_priv.h
sql/mysql_priv.h
+2
-1
sql/mysqld.cc
sql/mysqld.cc
+3
-2
sql/set_var.cc
sql/set_var.cc
+2
-2
No files found.
mysql-test/r/variables.result
View file @
6999f40d
...
...
@@ -1477,4 +1477,14 @@ SET @@sql_safe_updates= 0;
DELETE FROM t1 ORDER BY (@@GLOBAL.INIT_FILE) ASC LIMIT 10;
SET @@sql_safe_updates= @bug42778;
DROP TABLE t1;
#
# BUG#10206 - InnoDB: Transaction requiring Max_BinLog_Cache_size > 4GB always rollsback
#
SET @old_max_binlog_cache_size = @@GLOBAL.max_binlog_cache_size;
# Set the max_binlog_cache_size to size more than 4GB.
SET GLOBAL max_binlog_cache_size = 5 * 1024 * 1024 * 1024;
SELECT @@GLOBAL.max_binlog_cache_size;
@@GLOBAL.max_binlog_cache_size
5368709120
SET GLOBAL max_binlog_cache_size = @old_max_binlog_cache_size;
End of 5.1 tests
mysql-test/t/variables.test
View file @
6999f40d
...
...
@@ -1217,4 +1217,13 @@ SET @@sql_safe_updates= @bug42778;
DROP
TABLE
t1
;
--
echo
#
--
echo
# BUG#10206 - InnoDB: Transaction requiring Max_BinLog_Cache_size > 4GB always rollsback
--
echo
#
SET
@
old_max_binlog_cache_size
=
@@
GLOBAL
.
max_binlog_cache_size
;
--
echo
# Set the max_binlog_cache_size to size more than 4GB.
SET
GLOBAL
max_binlog_cache_size
=
5
*
1024
*
1024
*
1024
;
SELECT
@@
GLOBAL
.
max_binlog_cache_size
;
SET
GLOBAL
max_binlog_cache_size
=
@
old_max_binlog_cache_size
;
--
echo
End
of
5.1
tests
sql/mysql_priv.h
View file @
6999f40d
...
...
@@ -1935,7 +1935,8 @@ extern uint max_user_connections;
extern
ulong
what_to_log
,
flush_time
;
extern
ulong
query_buff_size
;
extern
ulong
max_prepared_stmt_count
,
prepared_stmt_count
;
extern
ulong
binlog_cache_size
,
max_binlog_cache_size
,
open_files_limit
;
extern
ulong
binlog_cache_size
,
open_files_limit
;
extern
ulonglong
max_binlog_cache_size
;
extern
ulong
max_binlog_size
,
max_relay_log_size
;
extern
ulong
opt_binlog_rows_event_max_size
;
extern
ulong
rpl_recovery_rank
,
thread_cache_size
,
thread_pool_size
;
...
...
sql/mysqld.cc
View file @
6999f40d
...
...
@@ -507,7 +507,8 @@ ulong slave_net_timeout, slave_trans_retries;
ulong
slave_exec_mode_options
;
const
char
*
slave_exec_mode_str
=
"STRICT"
;
ulong
thread_cache_size
=
0
,
thread_pool_size
=
0
;
ulong
binlog_cache_size
=
0
,
max_binlog_cache_size
=
0
;
ulong
binlog_cache_size
=
0
;
ulonglong
max_binlog_cache_size
=
0
;
ulong
query_cache_size
=
0
;
ulong
refresh_version
;
/* Increments on each reload */
query_id_t
global_query_id
;
...
...
@@ -6582,7 +6583,7 @@ log and this option does nothing anymore.",
{
"max_binlog_cache_size"
,
OPT_MAX_BINLOG_CACHE_SIZE
,
"Can be used to restrict the total size used to cache a multi-transaction query."
,
(
uchar
**
)
&
max_binlog_cache_size
,
(
uchar
**
)
&
max_binlog_cache_size
,
0
,
GET_UL
ONG
,
REQUIRED_ARG
,
ULONG_MAX
,
IO_SIZE
,
U
LONG_MAX
,
0
,
IO_SIZE
,
0
},
GET_UL
L
,
REQUIRED_ARG
,
ULONG_MAX
,
IO_SIZE
,
UL
LONG_MAX
,
0
,
IO_SIZE
,
0
},
{
"max_binlog_size"
,
OPT_MAX_BINLOG_SIZE
,
"Binary log will be rotated automatically when the size exceeds this \
value. Will also apply to relay logs if max_relay_log_size is 0. \
...
...
sql/set_var.cc
View file @
6999f40d
...
...
@@ -359,8 +359,8 @@ static sys_var_const sys_lower_case_table_names(&vars,
&
lower_case_table_names
);
static
sys_var_thd_ulong_session_readonly
sys_max_allowed_packet
(
&
vars
,
"max_allowed_packet"
,
&
SV
::
max_allowed_packet
);
static
sys_var_
long_ptr
sys_max_binlog_cache_size
(
&
vars
,
"max_binlog_cache_size"
,
&
max_binlog_cache_size
);
static
sys_var_
ulonglong_ptr
sys_max_binlog_cache_size
(
&
vars
,
"max_binlog_cache_size"
,
&
max_binlog_cache_size
);
static
sys_var_long_ptr
sys_max_binlog_size
(
&
vars
,
"max_binlog_size"
,
&
max_binlog_size
,
fix_max_binlog_size
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment