Drizzled Public API Documentation

module.cc File Reference

#include <config.h>
#include "transaction_log.h"
#include "transaction_log_applier.h"
#include "transaction_log_index.h"
#include "data_dictionary_schema.h"
#include "print_transaction_message.h"
#include "hexdump_transaction_message.h"
#include <errno.h>
#include <drizzled/plugin/plugin.h>
#include <drizzled/session.h>
#include <drizzled/gettext.h>
#include <boost/program_options.hpp>
#include <drizzled/module/option_map.h>
#include <drizzled/plugin/function.h>

Go to the source code of this file.

Typedefs

typedef constrained_check
< uint32_t, 2, 0 > 
flush_constraint
typedef constrained_check
< uint32_t, 8192, 4 > 
write_buffers_constraint

Functions

static void set_truncate_debug (Session *, sql_var_t)
static int init (drizzled::module::Context &context)
static void init_options (drizzled::module::option_context &context)
 DRIZZLE_PLUGIN (init, NULL, init_options)

Variables

static const char DEFAULT_LOG_FILE_PATH [] = "transaction.log"
static bool sysvar_transaction_log_enabled = false
static string sysvar_transaction_log_file
static bool sysvar_transaction_log_truncate_debug = false
static bool sysvar_transaction_log_checksum_enabled = false
static flush_constraint sysvar_transaction_log_flush_frequency
static write_buffers_constraint sysvar_transaction_log_num_write_buffers
static const char DEFAULT_USE_REPLICATOR [] = "default"
static string sysvar_transaction_log_use_replicator
static TransactionLogTooltransaction_log_tool
static TransactionLogEntriesTooltransaction_log_entries_tool
static
TransactionLogTransactionsTool
transaction_log_transactions_tool
TransactionLogIndextransaction_log_index
TransactionLogtransaction_log
TransactionLogAppliertransaction_log_applier
plugin::Create_function
< PrintTransactionMessageFunction > * 
print_transaction_message_func_factory
plugin::Create_function
< HexdumpTransactionMessageFunction > * 
hexdump_transaction_message_func_factory

Detailed Description

Transaction log module initialization and plugin registration.

Definition in file module.cc.


Typedef Documentation

typedef constrained_check<uint32_t, 2, 0> flush_constraint

Numeric option controlling the sync/flush behaviour of the transaction log. Options are:

TransactionLog::FLUSH_FREQUENCY_OS == 0 ... let OS do sync'ing TransactionLog::FLUSH_FREQUENCY_EVERY_WRITE == 1 ... sync on every write TransactionLog::FLUSH_FREQUENCY_EVERY_SECOND == 2 ... sync at most once a second

Definition at line 86 of file module.cc.

typedef constrained_check<uint32_t, 8192, 4> write_buffers_constraint

Transaction Log plugin system variable - Number of slots to create for managing write buffers

Definition at line 92 of file module.cc.


Variable Documentation

const char DEFAULT_LOG_FILE_PATH[] = "transaction.log" [static]

The name of the main transaction log file on disk. With no prefix, this goes into Drizzle's $datadir.

Definition at line 59 of file module.cc.

const char DEFAULT_USE_REPLICATOR[] = "default" [static]

Transaction Log plugin system variable - The name of the replicator plugin to pair the transaction log's applier with. Defaults to "default"

Definition at line 98 of file module.cc.

Transaction Log plugin system variable - Should we write a CRC32 checksum for each written Transaction message?

Definition at line 77 of file module.cc.

bool sysvar_transaction_log_enabled = false [static]

Transaction Log plugin system variable - Is the log enabled? Only used on init().

Definition at line 63 of file module.cc.

string sysvar_transaction_log_file [static]

Transaction Log plugin system variable - The path to the log file used

Definition at line 66 of file module.cc.

Transaction Log plugin system variable - A debugging variable to assist in truncating the log file.

Definition at line 72 of file module.cc.

Transaction Log descriptor defined in transaction_log.cc

Defined in transaction_log.cc

Definition at line 96 of file transaction_log.cc.

Transaction Log descriptor defined in transaction_log.cc

Definition at line 60 of file transaction_log_applier.cc.

DATA_DICTIONARY views

Definition at line 102 of file module.cc.