~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzletest.cc

This patch adds the following functionality:

* Removes the need to manually enable replicators in order
  for an applier to work.
* Removes the enabled/disabled setting of both transaction
  applier plugins and transaction replicator plugins
* Pairs a replicator with an applier into a "ReplicationStream"
  and removes all checks for "enabled" replicators and appliers
* Allows modules that implement a TransactionApplier (such as
  the transaction_log module) to specify which replicator to
  use via a configuration variable.  For instance, the transaction
  log module now has --transaction-log-use-replicator=[default|filtered..]
  instead of the user having to do --default-replicator-enable and such
* Adds a new data dictionary table for REPLICATION_STREAMS, which
  allows querying of activated replication-to-applier streams
  managed by drizzled::ReplicationServices

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
/* Added this for string translation. */
65
65
#include "drizzled/gettext.h"
66
66
#include "drizzled/hash.h"
67
 
#include "drizzled/drizzle_time.h"
 
67
#include "drizzled/my_time.h"
68
68
#include "drizzled/charset.h"
69
69
 
70
70
#ifndef DRIZZLE_RETURN_SERVER_GONE
77
77
extern "C"
78
78
unsigned char *get_var_key(const unsigned char* var, size_t *len, bool);
79
79
 
80
 
int get_one_option(int optid, const struct option *, char *argument);
 
80
int get_one_option(int optid, const struct my_option *, char *argument);
81
81
 
82
82
#define MAX_VAR_NAME_LENGTH    256
83
83
#define MAX_COLUMNS            256
4578
4578
}
4579
4579
 
4580
4580
 
4581
 
static struct option my_long_options[] =
 
4581
static struct my_option my_long_options[] =
4582
4582
{
4583
4583
  {"help", '?', "Display this help and exit.", 0, 0, 0, GET_NO_ARG, NO_ARG,
4584
4584
   0, 0, 0, 0, 0, 0},
4666
4666
  my_print_variables(my_long_options);
4667
4667
}
4668
4668
 
4669
 
int get_one_option(int optid, const struct option *, char *argument)
 
4669
int get_one_option(int optid, const struct my_option *, char *argument)
4670
4670
{
4671
4671
  char *endchar= NULL;
4672
4672
  uint64_t temp_drizzle_port= 0;