mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
fix galera.lp1438990 test
binlog_savepoint_rollback() should not try to truncate a binlog unless binlog_savepoint_set has actually remembered the position to truncate to.
This commit is contained in:
parent
7697bf0bd7
commit
0278151260
1 changed files with 4 additions and 2 deletions
|
@ -2250,13 +2250,15 @@ static int binlog_savepoint_rollback(handlerton *hton, THD *thd, void *sv)
|
|||
{
|
||||
DBUG_ENTER("binlog_savepoint_rollback");
|
||||
|
||||
if (wsrep_emulate_bin_log)
|
||||
DBUG_RETURN(0);
|
||||
|
||||
/*
|
||||
Write ROLLBACK TO SAVEPOINT to the binlog cache if we have updated some
|
||||
non-transactional table. Otherwise, truncate the binlog cache starting
|
||||
from the SAVEPOINT command.
|
||||
*/
|
||||
if (!wsrep_emulate_bin_log &&
|
||||
unlikely(trans_has_updated_non_trans_table(thd) ||
|
||||
if (unlikely(trans_has_updated_non_trans_table(thd) ||
|
||||
(thd->variables.option_bits & OPTION_KEEP_LOG)))
|
||||
{
|
||||
char buf[1024];
|
||||
|
|
Loading…
Add table
Reference in a new issue