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
e0328736
Commit
e0328736
authored
Apr 01, 2010
by
Alfranio Correia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#51291 Unfortunate effect around variable binlog_direct_non_transactional_updates
Post-merge fix.
parent
ae8e6ca5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
mysql-test/suite/rpl/t/rpl_semi_sync.test
mysql-test/suite/rpl/t/rpl_semi_sync.test
+1
-0
sql/log.cc
sql/log.cc
+1
-1
sql/sql_class.cc
sql/sql_class.cc
+1
-1
No files found.
mysql-test/suite/rpl/t/rpl_semi_sync.test
View file @
e0328736
...
@@ -15,6 +15,7 @@ call mtr.add_suppression("Unsafe statement binlogged in statement format since B
...
@@ -15,6 +15,7 @@ call mtr.add_suppression("Unsafe statement binlogged in statement format since B
connection
slave
;
connection
slave
;
call
mtr
.
add_suppression
(
"Master server does not support semi-sync"
);
call
mtr
.
add_suppression
(
"Master server does not support semi-sync"
);
call
mtr
.
add_suppression
(
"Semi-sync slave .* reply"
);
call
mtr
.
add_suppression
(
"Semi-sync slave .* reply"
);
call
mtr
.
add_suppression
(
"Unsafe statement binlogged in statement format since BINLOG_FORMAT = STATEMENT."
);
enable_query_log
;
enable_query_log
;
connection
master
;
connection
master
;
...
...
sql/log.cc
View file @
e0328736
...
@@ -4245,7 +4245,7 @@ bool use_trans_cache(const THD* thd, bool is_transactional)
...
@@ -4245,7 +4245,7 @@ bool use_trans_cache(const THD* thd, bool is_transactional)
return
return
((
thd
->
variables
.
binlog_format
!=
BINLOG_FORMAT_STMT
||
((
thd
->
variables
.
binlog_format
!=
BINLOG_FORMAT_STMT
||
thd
->
variables
.
binlog_direct_non_trans_update
)
?
is_transactional
:
thd
->
variables
.
binlog_direct_non_trans_update
)
?
is_transactional
:
(
is_transactional
||
cache_mngr
->
trx_cache
.
empty
()));
(
is_transactional
||
!
cache_mngr
->
trx_cache
.
empty
()));
}
}
/*
/*
...
...
sql/sql_class.cc
View file @
e0328736
...
@@ -3748,7 +3748,7 @@ int THD::decide_logging_format(TABLE_LIST *tables)
...
@@ -3748,7 +3748,7 @@ int THD::decide_logging_format(TABLE_LIST *tables)
isolation level but if we have pure repeatable read or serializable the
isolation level but if we have pure repeatable read or serializable the
lock history on the slave will be different from the master.
lock history on the slave will be different from the master.
*/
*/
if
(
!
trans_non_trans_access_engines
)
if
(
trans_non_trans_access_engines
)
lex
->
set_stmt_unsafe
(
LEX
::
BINLOG_STMT_UNSAFE_MIXED_STATEMENT
);
lex
->
set_stmt_unsafe
(
LEX
::
BINLOG_STMT_UNSAFE_MIXED_STATEMENT
);
else
if
(
trans_has_updated_trans_table
(
this
)
&&
!
all_trans_write_engines
)
else
if
(
trans_has_updated_trans_table
(
this
)
&&
!
all_trans_write_engines
)
lex
->
set_stmt_unsafe
(
LEX
::
BINLOG_STMT_UNSAFE_NONTRANS_AFTER_TRANS
);
lex
->
set_stmt_unsafe
(
LEX
::
BINLOG_STMT_UNSAFE_NONTRANS_AFTER_TRANS
);
...
...
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