~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
  return static_cast<void **>(&ha_data[monitored->getId()].ha_ptr);
134
134
}
135
135
 
136
 
ResourceContext *Session::getResourceContext(const plugin::MonitoredInTransaction *monitored,
137
 
                                             size_t index)
 
136
ResourceContext& Session::getResourceContext(const plugin::MonitoredInTransaction& monitored, size_t index)
138
137
{
139
 
  return &ha_data[monitored->getId()].resource_context[index];
 
138
  return ha_data[monitored.getId()].resource_context[index];
140
139
}
141
140
 
142
141
int64_t session_test_options(const Session *session, int64_t test_options)