~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cursor.cc

  • Committer: Monty Taylor
  • Date: 2009-12-08 22:24:26 UTC
  • mto: (1241.9.9 out-of-tree)
  • mto: This revision was merged to the branch mainline in revision 1250.
  • Revision ID: mordred@inaugust.com-20091208222426-rtv7e9vrvw5g8h1s
Removed some casts- also removed a few c-interface functions and made them actual methods on session. Also made the ha_data private. (fancy that)

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
 
148
148
void **Cursor::ha_data(Session *session) const
149
149
{
150
 
  return session_ha_data(session, engine);
 
150
  return session->getEngineData(engine);
151
151
}
152
152
 
153
153
Session *Cursor::ha_session(void) const
680
680
void
681
681
Cursor::mark_trx_read_write()
682
682
{
683
 
  Ha_trx_info *ha_info= &ha_session()->ha_data[engine->getSlot()].ha_info[0];
 
683
  Ha_trx_info *ha_info= ha_session()->getEngineInfo(engine);
684
684
  /*
685
685
    When a storage engine method is called, the transaction must
686
686
    have been started, unless it's a DDL call, for which the