~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handler.cc

  • Committer: Monty Taylor
  • Date: 2009-03-25 08:19:09 UTC
  • mto: (960.5.2 mordred)
  • mto: This revision was merged to the branch mainline in revision 964.
  • Revision ID: mordred@inaugust.com-20090325081909-pox7g3dz4ms24742
More hton renaming.

Show diffs side-by-side

added added

removed removed

Lines of Context:
865
865
}
866
866
 
867
867
 
868
 
struct xahton_st {
 
868
struct xaengine_st {
869
869
  XID *xid;
870
870
  int result;
871
871
};
877
877
  StorageEngine *engine= plugin_data(plugin, StorageEngine *);
878
878
  if (engine->state == SHOW_OPTION_YES)
879
879
  {
880
 
    engine->commit_by_xid(engine, ((struct xahton_st *)arg)->xid);
881
 
    ((struct xahton_st *)arg)->result= 0;
 
880
    engine->commit_by_xid(engine, ((struct xaengine_st *)arg)->xid);
 
881
    ((struct xaengine_st *)arg)->result= 0;
882
882
  }
883
883
  return false;
884
884
}
890
890
  StorageEngine *engine= plugin_data(plugin, StorageEngine *);
891
891
  if (engine->state == SHOW_OPTION_YES)
892
892
  {
893
 
    engine->rollback_by_xid(engine, ((struct xahton_st *)arg)->xid);
894
 
    ((struct xahton_st *)arg)->result= 0;
 
893
    engine->rollback_by_xid(engine, ((struct xaengine_st *)arg)->xid);
 
894
    ((struct xaengine_st *)arg)->result= 0;
895
895
  }
896
896
  return false;
897
897
}
899
899
 
900
900
int ha_commit_or_rollback_by_xid(XID *xid, bool commit)
901
901
{
902
 
  struct xahton_st xaop;
 
902
  struct xaengine_st xaop;
903
903
  xaop.xid= xid;
904
904
  xaop.result= 1;
905
905