Don't rotate binlog if prepared xids in log
253. By Stewart Smith on 2012-05-30
fix the purge() call in MYSQL_BIN_
The binlog shouldn't be rotated while there's prepared xids in it, so the condition in the if() here is wrong, we should run purge() if we have no xid_count and check_purge was set.