Commit 86715aa8 authored by joerg@mysql.com's avatar joerg@mysql.com

Merge mysql.com:/M50/clone-5.0 into mysql.com:/M51/clone-5.1

parents a663acb1 9a12ddcf
...@@ -3122,7 +3122,11 @@ DBUG_skip_commit: ...@@ -3122,7 +3122,11 @@ DBUG_skip_commit:
rotate binlog, if necessary. rotate binlog, if necessary.
*/ */
if (commit_event->get_type_code() == XID_EVENT) if (commit_event->get_type_code() == XID_EVENT)
thread_safe_increment(prepared_xids, &LOCK_prep_xids); {
pthread_mutex_lock(&LOCK_prep_xids);
prepared_xids++;
pthread_mutex_unlock(&LOCK_prep_xids);
}
else else
rotate_and_purge(RP_LOCK_LOG_IS_ALREADY_LOCKED); rotate_and_purge(RP_LOCK_LOG_IS_ALREADY_LOCKED);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment