There was an error while loading. Please reload this page.
1 parent a350e53 commit 19fe10cCopy full SHA for 19fe10c
sql/handler.cc
@@ -1238,7 +1238,8 @@ int ha_commit_trans(THD *thd, bool all)
1238
1239
uint rw_ha_count= ha_check_and_coalesce_trx_read_only(thd, ha_info, all);
1240
/* rw_trans is TRUE when we in a transaction changing data */
1241
- bool rw_trans= is_real_trans && (rw_ha_count > 0);
+ bool rw_trans= is_real_trans &&
1242
+ (rw_ha_count > !thd->is_current_stmt_binlog_disabled());
1243
MDL_request mdl_request;
1244
1245
if (rw_trans)
0 commit comments