~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_insert.cc

  • Committer: Brian Aker
  • Date: 2010-11-08 18:54:26 UTC
  • mto: (1921.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 1916.
  • Revision ID: brian@tangent.org-20101108185426-fymkf2xnelupf11x
Rename lock methods to be style + well make sense.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1650
1650
  }
1651
1651
 
1652
1652
  table->reginfo.lock_type=TL_WRITE;
1653
 
  if (! ((*lock)= session->mysql_lock_tables(&table, 1, DRIZZLE_LOCK_IGNORE_FLUSH, &not_used)))
 
1653
  if (! ((*lock)= session->lockTables(&table, 1, DRIZZLE_LOCK_IGNORE_FLUSH, &not_used)))
1654
1654
  {
1655
1655
    if (*lock)
1656
1656
    {
1657
 
      session->mysql_unlock_tables(*lock);
 
1657
      session->unlockTables(*lock);
1658
1658
      *lock= 0;
1659
1659
    }
1660
1660
 
1786
1786
    table->cursor->extra(HA_EXTRA_WRITE_CANNOT_REPLACE);
1787
1787
    if (m_plock)
1788
1788
    {
1789
 
      session->mysql_unlock_tables(*m_plock);
 
1789
      session->unlockTables(*m_plock);
1790
1790
      *m_plock= NULL;
1791
1791
      m_plock= NULL;
1792
1792
    }
1816
1816
 
1817
1817
  if (m_plock)
1818
1818
  {
1819
 
    session->mysql_unlock_tables(*m_plock);
 
1819
    session->unlockTables(*m_plock);
1820
1820
    *m_plock= NULL;
1821
1821
    m_plock= NULL;
1822
1822
  }