~mysql/mysql-server/mysql-6.0

« back to all changes in this revision

Viewing changes to sql/log_event.cc

auto-merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
5181
5181
#if defined(HAVE_REPLICATION) && !defined(MYSQL_CLIENT)
5182
5182
int Xid_log_event::do_apply_event(Relay_log_info const *rli)
5183
5183
{
 
5184
  bool res;
5184
5185
  /* For a slave Xid_log_event is COMMIT */
5185
5186
  general_log_print(thd, COM_QUERY,
5186
5187
                    "COMMIT /* implicit, from Xid_log_event */");
5187
 
  return trans_commit(thd);
 
5188
  if (!(res= trans_commit(thd)))
 
5189
  {
 
5190
    close_thread_tables(thd);
 
5191
    if (!thd->locked_tables_mode)
 
5192
      thd->mdl_context.release_all_locks();
 
5193
  }
 
5194
  return res;
5188
5195
}
5189
5196
 
5190
5197
Log_event::enum_skip_reason