~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbxt/src/ha_xtsys.cc

  • Committer: Brian Aker
  • Date: 2010-10-22 23:33:58 UTC
  • mfrom: (1869.1.7 refactor)
  • Revision ID: brian@tangent.org-20101022233358-kmtrpm1yvmmyaame
Merge in overhaul to how cursor and table are handled. Cursor now only knows
about table, and will always have a table and engine reference.

This cleans up a number of ownership issues, the biggest being that it now
creates the space needed for the next big refactor in locks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
 */
60
60
 
61
61
#ifdef DRIZZLED
62
 
ha_xtsys::ha_xtsys(handlerton *hton, TableShare& table_arg):
 
62
ha_xtsys::ha_xtsys(handlerton *hton, Table& table_arg):
63
63
handler(*hton, table_arg),
64
64
ha_open_tab(NULL)
65
65
{
96
96
        try_(a) {
97
97
                xt_ha_open_database_of_table(self, (XTPathStrPtr) table_path);
98
98
 
99
 
                ha_open_tab = XTSystemTableShare::openSystemTable(self, table_path, table);
 
99
                ha_open_tab = XTSystemTableShare::openSystemTable(self, table_path, getTable());
100
100
                MYSQL_INIT_LOCK(ha_lock, ha_open_tab->ost_share->sts_my_lock);
101
101
                ref_length = ha_open_tab->getRefLen();
102
102
        }