~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/slave/module.cc

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
  const module::option_map &vm= context.getOptions();
46
46
 
47
47
  ReplicationSlave *slave= new ReplicationSlave(vm["config-file"].as<string>());
48
 
  if (vm.count("max-commit-id"))
49
 
    slave->setMaxCommitId(vm["max-commit-id"].as<uint64_t>());
50
48
  context.add(slave);
51
49
  return 0;
52
50
}
56
54
  context("config-file",
57
55
          po::value<string>()->default_value(DEFAULT_SLAVE_CFG_FILE.string()),
58
56
          N_("Path to the slave configuration file"));
59
 
  context("max-commit-id",
60
 
          po::value<uint64_t>(),
61
 
          N_("Value to use as the maximum commit ID stored on the slave"));
62
57
}
63
58
 
64
59
} /* namespace slave */
67
62
{
68
63
  DRIZZLE_VERSION_ID,
69
64
  "slave",
70
 
  "1.0",
 
65
  "1.1",
71
66
  "David Shrewsbury",
72
 
  "Implements Drizzle replication slave.",
 
67
  N_("Drizzle replication slave"),
73
68
  PLUGIN_LICENSE_GPL,
74
69
  slave::init,
75
 
  NULL,                  /* depends */
76
 
  slave::init_options    /* config options */
 
70
  NULL,
 
71
  slave::init_options
77
72
}
78
73
DRIZZLE_DECLARE_PLUGIN_END;