~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/join.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:
591
591
    return 1;
592
592
  }
593
593
  if (const_tables && !(select_options & SELECT_NO_UNLOCK))
594
 
    session->mysql_unlock_some_tables(table, const_tables);
 
594
    session->unlockSomeTables(table, const_tables);
595
595
  if (!conds && outer_join)
596
596
  {
597
597
    /* Handle the case where we have an OUTER JOIN without a WHERE */
1788
1788
    is called after all rows are sent, but before EOF packet is sent.
1789
1789
 
1790
1790
    For a simple SELECT with no subqueries this function performs a full
1791
 
    cleanup of the Join and calls mysql_unlock_read_tables to free used base
 
1791
    cleanup of the Join and calls unlockReadTables to free used base
1792
1792
    tables.
1793
1793
 
1794
1794
    If a Join is executed for a subquery or if it has a subquery, we can't
1860
1860
      TODO: unlock tables even if the join isn't top level select in the
1861
1861
      tree.
1862
1862
    */
1863
 
    session->mysql_unlock_read_tables(lock);           // Don't free join->lock
 
1863
    session->unlockReadTables(lock);           // Don't free join->lock
1864
1864
    lock= 0;
1865
1865
  }
1866
1866