~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cursor.cc

  • Committer: Brian Aker
  • Date: 2010-10-22 23:03:02 UTC
  • mto: This revision was merged to the branch mainline in revision 1873.
  • Revision ID: brian@tangent.org-20101022230302-eptx6xhve8d1n1jt
Cleanup of caller to ha_open().

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
Cursor::Cursor(plugin::StorageEngine &engine_arg,
57
57
               Table &arg)
58
58
  : table(arg),
59
 
    estimation_rows_to_insert(0), engine(engine_arg),
 
59
    engine(engine_arg),
 
60
    estimation_rows_to_insert(0),
60
61
    ref(0),
61
62
    key_used_on_scan(MAX_KEY), active_index(MAX_KEY),
62
63
    ref_length(sizeof(internal::my_off_t)),
94
95
                             getTable()->getShare()->getType());
95
96
 
96
97
  if (new_handler && !new_handler->ha_open(identifier,
97
 
                                           getTable(),
98
98
                                           getTable()->getDBStat(),
99
99
                                           HA_OPEN_IGNORE_IF_LOCKED))
100
100
    return new_handler;
222
222
  Don't wait for locks if not HA_OPEN_WAIT_IF_LOCKED is set
223
223
*/
224
224
int Cursor::ha_open(const TableIdentifier &identifier,
225
 
                    Table *,
226
225
                    int mode,
227
226
                    int test_if_locked)
228
227
{