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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ec9f8852
Commit
ec9f8852
authored
Jan 08, 2009
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
5b6829ac
72982373
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
mysql-test/suite/binlog/r/binlog_innodb.result
mysql-test/suite/binlog/r/binlog_innodb.result
+4
-3
mysql-test/suite/binlog/t/binlog_innodb.test
mysql-test/suite/binlog/t/binlog_innodb.test
+1
-0
sql/set_var.cc
sql/set_var.cc
+3
-2
No files found.
mysql-test/suite/binlog/r/binlog_innodb.result
View file @
ec9f8852
...
...
@@ -113,16 +113,17 @@ master-bin.000001 # Table_map # # table_id: # (test.t1)
master-bin.000001 # Update_rows # # table_id: # flags: STMT_END_F
master-bin.000001 # Xid # # COMMIT /* XID */
DROP TABLE t1;
flush status;
show status like "binlog_cache_use";
Variable_name Value
Binlog_cache_use
13
Binlog_cache_use
0
show status like "binlog_cache_disk_use";
Variable_name Value
Binlog_cache_disk_use 0
create table t1 (a int) engine=innodb;
show status like "binlog_cache_use";
Variable_name Value
Binlog_cache_use 1
4
Binlog_cache_use 1
show status like "binlog_cache_disk_use";
Variable_name Value
Binlog_cache_disk_use 1
...
...
@@ -131,7 +132,7 @@ delete from t1;
commit;
show status like "binlog_cache_use";
Variable_name Value
Binlog_cache_use
15
Binlog_cache_use
2
show status like "binlog_cache_disk_use";
Variable_name Value
Binlog_cache_disk_use 1
...
...
mysql-test/suite/binlog/t/binlog_innodb.test
View file @
ec9f8852
...
...
@@ -101,6 +101,7 @@ DROP TABLE t1;
# Actually this test has nothing to do with innodb per se, it just requires
# transactional table.
#
flush
status
;
show
status
like
"binlog_cache_use"
;
show
status
like
"binlog_cache_disk_use"
;
...
...
sql/set_var.cc
View file @
ec9f8852
...
...
@@ -1527,14 +1527,14 @@ bool sys_var_thd_ulong::update(THD *thd, set_var *var)
ulonglong
tmp
=
var
->
save_result
.
ulonglong_value
;
/* Don't use bigger value than given with --maximum-variable-name=.. */
if
(
(
ulong
)
tmp
>
max_system_variables
.
*
offset
)
if
(
tmp
>
max_system_variables
.
*
offset
)
{
throw_bounds_warning
(
thd
,
TRUE
,
TRUE
,
name
,
(
longlong
)
tmp
);
tmp
=
max_system_variables
.
*
offset
;
}
if
(
option_limits
)
tmp
=
(
ulong
)
fix_unsigned
(
thd
,
tmp
,
option_limits
);
tmp
=
fix_unsigned
(
thd
,
tmp
,
option_limits
);
#if SIZEOF_LONG < SIZEOF_LONG_LONG
else
if
(
tmp
>
ULONG_MAX
)
{
...
...
@@ -1543,6 +1543,7 @@ bool sys_var_thd_ulong::update(THD *thd, set_var *var)
}
#endif
DBUG_ASSERT
(
tmp
<=
ULONG_MAX
);
if
(
var
->
type
==
OPT_GLOBAL
)
global_system_variables
.
*
offset
=
(
ulong
)
tmp
;
else
...
...
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