~drizzle-developers/ubuntu/karmic/drizzle/ppa

« back to all changes in this revision

Viewing changes to drizzled/statement/drop_table.cc

  • Committer: Monty Taylor
  • Date: 2010-11-24 18:44:57 UTC
  • mfrom: (1308.1.31 trunk)
  • Revision ID: mordred@inaugust.com-20101124184457-qd6jvoe2wgnvl3yq
Tags: 2010.11.04-0ubuntu1~karmic1
* New upstream release.
* Turn off -Werror for packaging builds. (Closes: #602662)

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
  }
67
67
 
68
68
  /*
69
 
    Acquire LOCK_open after wait_if_global_read_lock(). If we would hold
70
 
    LOCK_open during wait_if_global_read_lock(), other threads could not
 
69
    Acquire table::Cache::singleton().mutex() after wait_if_global_read_lock(). If we would hold
 
70
    table::Cache::singleton().mutex() during wait_if_global_read_lock(), other threads could not
71
71
    close their tables. This would make a pretty deadlock.
72
72
  */
73
73
  error= mysql_rm_table_part2(session, tables, if_exists, drop_temporary);
99
99
    }
100
100
  }
101
101
 
102
 
  /* DDL and binlog write order protected by LOCK_open */
 
102
  /* DDL and binlog write order protected by table::Cache::singleton().mutex() */
103
103
  bool res= mysql_rm_table(session,
104
104
                           first_table,
105
105
                           drop_if_exists,