~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/ha_trx_info.h

Moved StorageEngine into plugin namespace.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
 
24
24
class Session_TRANS;
 
25
namespace drizzled
 
26
{
 
27
namespace plugin
 
28
{
25
29
class StorageEngine;
 
30
}
 
31
}
26
32
 
27
33
/**
28
34
  Either statement transaction or normal transaction - related
45
51
{
46
52
public:
47
53
  /** Register this storage engine in the given transaction context. */
48
 
  void register_ha(Session_TRANS *trans, StorageEngine *engine_arg);
 
54
  void register_ha(Session_TRANS *trans,
 
55
                   drizzled::plugin::StorageEngine *engine_arg);
49
56
 
50
57
  /** Clear, prepare for reuse. */
51
58
  void reset();
58
65
  /** Mark this transaction read-write if the argument is read-write. */
59
66
  void coalesce_trx_with(const Ha_trx_info *stmt_trx);
60
67
  Ha_trx_info *next() const;
61
 
  StorageEngine *engine() const;
 
68
  drizzled::plugin::StorageEngine *engine() const;
62
69
 
63
70
private:
64
71
  enum { TRX_READ_ONLY= 0, TRX_READ_WRITE= 1 };
69
76
    for the same storage engine, 'engine' is not-NULL only when the
70
77
    corresponding storage is a part of a transaction.
71
78
  */
72
 
  StorageEngine *m_engine;
 
79
  drizzled::plugin::StorageEngine *m_engine;
73
80
  /**
74
81
    Transaction flags related to this engine.
75
82
    Not-null only if this instance is a part of transaction.