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
d3ef23e9
Commit
d3ef23e9
authored
Apr 26, 2011
by
Serge Kozlov
Browse files
Options
Browse Files
Download
Plain Diff
autocommit 5.1->5.5
parents
66c48545
e7079a32
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
mysql-test/suite/binlog/r/binlog_bug23533.result
mysql-test/suite/binlog/r/binlog_bug23533.result
+0
-4
mysql-test/suite/binlog/t/binlog_bug23533.test
mysql-test/suite/binlog/t/binlog_bug23533.test
+12
-4
No files found.
mysql-test/suite/binlog/r/binlog_bug23533.result
View file @
d3ef23e9
...
@@ -3,8 +3,6 @@ CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT, b TEXT, PRIMARY KEY(a)) ENGINE=I
...
@@ -3,8 +3,6 @@ CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT, b TEXT, PRIMARY KEY(a)) ENGINE=I
SELECT COUNT(*) FROM t1;
SELECT COUNT(*) FROM t1;
COUNT(*)
COUNT(*)
1000
1000
SET @saved_binlog_cache_size=@@binlog_cache_size;
SET @saved_max_binlog_cache_size=@@max_binlog_cache_size;
SET GLOBAL binlog_cache_size=4096;
SET GLOBAL binlog_cache_size=4096;
SET GLOBAL max_binlog_cache_size=4096;
SET GLOBAL max_binlog_cache_size=4096;
START TRANSACTION;
START TRANSACTION;
...
@@ -14,6 +12,4 @@ COMMIT;
...
@@ -14,6 +12,4 @@ COMMIT;
SHOW TABLES LIKE 't%';
SHOW TABLES LIKE 't%';
Tables_in_test (t%)
Tables_in_test (t%)
t1
t1
SET GLOBAL max_binlog_cache_size=@saved_max_binlog_cache_size;
SET GLOBAL binlog_cache_size=@saved_binlog_cache_size;
DROP TABLE t1;
DROP TABLE t1;
mysql-test/suite/binlog/t/binlog_bug23533.test
View file @
d3ef23e9
...
@@ -24,11 +24,15 @@ while ($i)
...
@@ -24,11 +24,15 @@ while ($i)
SELECT
COUNT
(
*
)
FROM
t1
;
SELECT
COUNT
(
*
)
FROM
t1
;
# Set small value for max_binlog_cache_size
# Set small value for max_binlog_cache_size
SET
@
saved_binlog_cache_size
=@@
binlog_cache_size
;
let
$saved_binlog_cache_size
=
query_get_value
(
SELECT
@@
binlog_cache_size
AS
Value
,
Value
,
1
)
;
SET
@
saved_max_binlog_cache_size
=@@
max_binlog_cache_size
;
let
$saved_max_binlog_cache_size
=
query_get_value
(
SELECT
@@
max_binlog_cache_size
AS
Value
,
Value
,
1
)
;
SET
GLOBAL
binlog_cache_size
=
4096
;
SET
GLOBAL
binlog_cache_size
=
4096
;
SET
GLOBAL
max_binlog_cache_size
=
4096
;
SET
GLOBAL
max_binlog_cache_size
=
4096
;
# New value of max_binlog_cache_size will apply to new session
disconnect
default
;
connect
(
default
,
localhost
,
root
,,
test
);
# Copied data from t1 into t2 large than max_binlog_cache_size
# Copied data from t1 into t2 large than max_binlog_cache_size
START
TRANSACTION
;
START
TRANSACTION
;
--
error
1197
--
error
1197
...
@@ -37,6 +41,10 @@ COMMIT;
...
@@ -37,6 +41,10 @@ COMMIT;
SHOW
TABLES
LIKE
't%'
;
SHOW
TABLES
LIKE
't%'
;
# 5.1 End of Test
# 5.1 End of Test
SET
GLOBAL
max_binlog_cache_size
=@
saved_max_binlog_cache_size
;
--
disable_query_log
SET
GLOBAL
binlog_cache_size
=@
saved_binlog_cache_size
;
eval
SET
GLOBAL
max_binlog_cache_size
=
$saved_max_binlog_cache_size
;
eval
SET
GLOBAL
binlog_cache_size
=
$saved_binlog_cache_size
;
--
enable_query_log
DROP
TABLE
t1
;
DROP
TABLE
t1
;
disconnect
default
;
connect
(
default
,
localhost
,
root
,,
test
);
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