部分栈帧:2、prepare栈帧(gdb)bt#0 binlog_prepare(hton=0x346f260,thd=0x7fff2c000b70,all=false)at/root/mysql5.7.14/percona-server-5.7.14-7/sql/binlog.cc:1578#1 0x0000000000f64e80 in ha_prepare_low(thd=0x7fff2c000b70,all=...
也就是说除了语法错误,其他错误语句获取到的锁在这个事务提交或回滚之前,仍然不会释放掉。because the failed statement is written to the binary log and the locks protect log consistency 但是解释这一行为的原因很难理解,因为错误...