~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/slave/module.cc

  • Committer: Monty Taylor
  • Date: 2011-03-08 17:33:07 UTC
  • mfrom: (2223.1.5 build)
  • Revision ID: mordred@inaugust.com-20110308173307-m4yvcqms136xs05b
Merge Andrew - Add multi-statements to libdrizzle
Merge Dave - new --slave.max-commit option

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>());
48
50
  context.add(slave);
49
51
  return 0;
50
52
}
54
56
  context("config-file",
55
57
          po::value<string>()->default_value(DEFAULT_SLAVE_CFG_FILE.string()),
56
58
          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"));
57
62
}
58
63
 
59
64
} /* namespace slave */