~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/rename.cc

  • Committer: Brian Aker
  • Date: 2009-06-03 19:30:45 UTC
  • mfrom: (1046.1.6 merge)
  • Revision ID: brian@gaz-20090603193045-4xgeczyfixh07beg
MergeĀ forĀ Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
  if (wait_if_global_read_lock(session,0,1))
50
50
    return(1);
51
51
 
52
 
  pthread_mutex_lock(&LOCK_open);
 
52
  pthread_mutex_lock(&LOCK_open); /* Rename table lock for exclusive access */
53
53
  if (lock_table_names_exclusively(session, table_list))
54
54
  {
55
55
    pthread_mutex_unlock(&LOCK_open);
94
94
    session->my_ok();
95
95
  }
96
96
 
97
 
  pthread_mutex_lock(&LOCK_open);
 
97
  pthread_mutex_lock(&LOCK_open); /* unlock all tables held */
98
98
  unlock_table_names(table_list, NULL);
99
99
  pthread_mutex_unlock(&LOCK_open);
100
100