~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/drop_table.cc

  • Committer: Olaf van der Spek
  • Date: 2011-04-13 10:38:28 UTC
  • mto: (2277.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2278.
  • Revision ID: olafvdspek@gmail.com-20110413103828-zpiii4c7j79k6soe
Remove table::Cache::singleton()

Show diffs side-by-side

added added

removed removed

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