~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.cc

* Renames Ha_trx_info to drizzled::ResourceContext
* Renames Sesssion_TRANS to drizzled::TransactionContext
* Replaces homegrown linked-lists of Ha_trx_info pointers
  with vector<drizzled::ResourceContext> operations
* Renames Session::getEngineInfo() to Session::getResourceContext()

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
 
99
99
void plugin::StorageEngine::setTransactionReadWrite(Session& session)
100
100
{
101
 
  Ha_trx_info *ha_info= session.getEngineInfo(this);
 
101
  ResourceContext *resource_context= session.getResourceContext(this);
102
102
 
103
103
  /*
104
104
    When a storage engine method is called, the transaction must
108
108
    Unfortunately here we can't know know for sure if the engine
109
109
    has registered the transaction or not, so we must check.
110
110
  */
111
 
  if (ha_info->is_started())
 
111
  if (resource_context->is_started())
112
112
  {
113
113
    /*
114
114
     * table_share can be NULL in plugin::StorageEngine::dropTable().
115
115
     */
116
 
    ha_info->set_trx_read_write();
 
116
    resource_context->set_trx_read_write();
117
117
  }
118
118
}
119
119