~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session/transactions.h

  • Committer: Mark Atwood
  • Date: 2011-08-11 03:05:03 UTC
  • mfrom: (2385.1.12 refactor4)
  • Revision ID: me@mark.atwood.name-20110811030503-rp9xjihc5x3y0x4q
merge lp:~olafvdspek/drizzle/refactor4

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef DRIZZLED_SESSION_TRANSACTIONS_H
22
 
#define DRIZZLED_SESSION_TRANSACTIONS_H
 
21
#pragma once
23
22
 
24
23
#include <deque>
25
 
 
26
 
namespace drizzled
27
 
{
28
 
 
29
 
class Session;
30
 
 
31
 
namespace session
32
 
{
 
24
#include <drizzled/named_savepoint.h>
 
25
#include <drizzled/xid.h>
 
26
 
 
27
namespace drizzled {
 
28
namespace session {
33
29
 
34
30
/**
35
31
 * Structure used to manage "statement transactions" and
39
35
 * Storage engines will be registered here when they participate in
40
36
 * a transaction. No engine is registered more than once.
41
37
 */
42
 
class Transactions {
 
38
class Transactions 
 
39
{
43
40
public:
44
 
  Transactions() :
45
 
    savepoints(),
46
 
    all(),
47
 
    stmt(),
48
 
    xid_state()
49
 
  { }
50
 
 
51
41
  std::deque<NamedSavepoint> savepoints;
52
42
 
53
43
  /**
82
72
} /* namespace session */
83
73
} /* namespace drizzled */
84
74
 
85
 
#endif /* DRIZZLED_SESSION_TRANSACTIONS_H */