Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PS-9163 MySQLV8.0 replica encounter error when master and replica innodb_strict_mode=OFF #5270

Open
wants to merge 4 commits into
base: 8.0
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion storage/innobase/handler/ha_innodb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3401,7 +3401,7 @@ bool trx_is_strict(trx_t *trx) /*!< in: transaction */
{
/* Relax strict check if table is in truncate create table */
return (trx && trx->mysql_thd && THDVAR(trx->mysql_thd, strict_mode) &&
(!trx->in_truncate));
(!trx->in_truncate) && (!thd_slave_thread(trx->mysql_thd)));
}

/** Resets some fields of a m_prebuilt struct. The template is used in fast
Expand Down