~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/query_id.h

  • Committer: Jay Pipes
  • Date: 2009-11-16 22:00:02 UTC
  • mto: (1234.1.1 push) (1237.2.10 push)
  • mto: This revision was merged to the branch mainline in revision 1229.
  • Revision ID: jpipes@serialcoder-20091116220002-rdsha64utt41i8w8
Adds INFORMATION_SCHEMA views for the transaction log:

TRANSACTION_LOG
TRANSACTION_LOG_ENTRIES
TRANSACTION_LOG_TRANSACTIONS

Adds a new user-defined function:

PRINT_TRANSACTION_MESSAGE(filename, offset)

Adds tests for all of the above

Implementation notes:

An indexer now runs when transaction messages are applied
to the transaction log.  It creates a simple index of the
transaction log entries.  This index is used when the
information schema views' fillTable() method is called.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <pthread.h>
24
24
#include <drizzled/atomics.h>
25
25
 
26
 
namespace drizzled
27
 
{
28
 
 
29
 
typedef uint64_t query_id_t;
30
 
 
31
26
class Query_id
32
27
{
33
28
public:
44
39
  query_id_t next();
45
40
 
46
41
private:
47
 
  atomic<uint64_t> the_query_id;
 
42
  drizzled::atomic<uint64_t> the_query_id;
48
43
 
49
44
  Query_id();
50
45
  Query_id(Query_id const&);
51
46
  Query_id& operator=(Query_id const&);
52
47
};
53
48
 
54
 
} /* namespace drizzled */
55
 
 
56
49
#endif /* DRIZZLED_QUERY_ID_H */