~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/transaction_log/transaction_log.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:
35
35
 * the TransactionLogApplier plugin(s).
36
36
 */
37
37
 
38
 
#ifndef PLUGIN_TRANSACTION_LOG_TRANSACTION_LOG_H
39
 
#define PLUGIN_TRANSACTION_LOG_TRANSACTION_LOG_H
 
38
#pragma once
40
39
 
41
40
#include <drizzled/atomics.h>
42
41
#include <drizzled/replication_services.h>
65
64
  static const uint32_t FLUSH_FREQUENCY_EVERY_WRITE= 1; //< Sync on every write to the log file
66
65
  static const uint32_t FLUSH_FREQUENCY_EVERY_SECOND= 2; ///< Sync no more than once a second
67
66
public:
68
 
  TransactionLog(const std::string in_log_file_path,
 
67
  TransactionLog(const std::string &in_log_file_path,
69
68
                 uint32_t in_flush_frequency,
70
69
                 bool in_do_checksum);
71
70
 
210
209
  bool do_checksum; ///< Do a CRC32 checksum when writing Transaction message to log?
211
210
};
212
211
 
213
 
#endif /* PLUGIN_TRANSACTION_LOG_TRANSACTION_LOG_H */