--- mysql_80/storage/innobase/handler/ha_innodb.cc 2024-03-25 15:11:17.410628166 +0800 +++ mysql-8.0.35/storage/innobase/handler/ha_innodb.cc 2024-03-25 10:26:39.891183301 +0800 @@ -3153,7 +3153,7 @@ { /* 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