~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 06:28:23 UTC
  • mfrom: (2221.8.1 bug726729_add_skip)
  • mto: This revision was merged to the branch mainline in revision 2225.
  • Revision ID: mordred@inaugust.com-20110308062823-40o1v7udh8oyjj3l
Merge Dave - new --slave.max-commit-id 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 */