~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_insert.cc

  • Committer: Brian Aker
  • Date: 2010-11-22 00:16:44 UTC
  • mto: (1945.2.1 quick)
  • mto: This revision was merged to the branch mainline in revision 1947.
  • Revision ID: brian@tangent.org-20101122001644-pi6jv0d65e82xn38
Merge in lock refactor, this just encapsulates.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1608
1608
 
1609
1609
      if (not identifier.isTmp())
1610
1610
      {
1611
 
        table::Cache::singleton().mutex().lock(); /* CREATE TABLE... has found that the table already exists for insert and is adapting to use it */
 
1611
        /* CREATE TABLE... has found that the table already exists for insert and is adapting to use it */
 
1612
        boost::mutex::scoped_lock scopedLock(table::Cache::singleton().mutex());
1612
1613
 
1613
1614
        if (create_table->table)
1614
1615
        {
1627
1628
        {
1628
1629
          quick_rm_table(*session, identifier);
1629
1630
        }
1630
 
 
1631
 
        table::Cache::singleton().mutex().unlock();
1632
1631
      }
1633
1632
      else
1634
1633
      {