~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/transactional_storage_engine.cc

  • Committer: Lee Bieber
  • Date: 2011-03-22 17:41:09 UTC
  • mfrom: (2241.2.18 refactor2)
  • Revision ID: kalebral@gmail.com-20110322174109-1bsfvv4q1dnfd089
Merge Olaf - more code refactoring

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
void TransactionalStorageEngine::setTransactionReadWrite(Session& session)
50
50
{
51
 
  ResourceContext *resource_context= session.getResourceContext(this);
 
51
  ResourceContext& resource_context= session.getResourceContext(*this);
52
52
 
53
53
  /*
54
54
    When a storage engine method is called, the transaction must
58
58
    Unfortunately here we can't know know for sure if the engine
59
59
    has registered the transaction or not, so we must check.
60
60
  */
61
 
  if (resource_context->isStarted())
62
 
  {
63
 
    resource_context->markModifiedData();
64
 
  }
 
61
  if (resource_context.isStarted())
 
62
    resource_context.markModifiedData();
65
63
}
66
64
 
67
65
/**