~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/xa_resource_manager.h

  • Committer: Brian Aker
  • Date: 2010-07-28 22:40:44 UTC
  • mto: This revision was merged to the branch mainline in revision 1671.
  • Revision ID: brian@gaz-20100728224044-j7lfssku6pbqg8wr
Remove the need for tolower in retrieval of table functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLED_PLUGIN_XA_RESOURCE_MANAGER_H
22
22
#define DRIZZLED_PLUGIN_XA_RESOURCE_MANAGER_H
23
23
 
24
 
#include <boost/unordered_set.hpp>
25
 
 
26
24
namespace drizzled
27
25
{
28
26
 
71
69
    return doXaRecover(append_to, len);
72
70
  }
73
71
 
74
 
  uint64_t getCurrentTransactionId(Session *session)
75
 
  {
76
 
    return doGetCurrentTransactionId(session);
77
 
  }
78
 
 
79
 
  uint64_t getNewTransactionId(Session *session)
80
 
  {
81
 
    return doGetNewTransactionId(session);
82
 
  }
83
 
 
84
 
  typedef ::boost::unordered_set<my_xid> commit_list_set;
85
72
  /** 
86
73
   * The below static class methods wrap the interaction
87
74
   * of the vector of registered XA storage engines.
88
75
   */
89
76
  static int commitOrRollbackXID(XID *xid, bool commit);
90
 
  static int recoverAllXids();
91
 
  static int recoverAllXids(const commit_list_set& commit_list);
 
77
  static int recoverAllXids(HASH *commit_list);
92
78
 
93
79
  /* Class Methods for operating on plugin */
94
80
  static bool addPlugin(plugin::XaResourceManager *manager);
127
113
   *  for this engine.
128
114
   */
129
115
  virtual int doXaRecover(XID * append_to, size_t len)= 0;
130
 
 
131
 
  virtual uint64_t doGetCurrentTransactionId(Session *session)= 0;
132
 
 
133
 
  virtual uint64_t doGetNewTransactionId(Session *session)= 0;
134
116
};
135
117
 
136
118
} /* namespace plugin */