~skinny.moey/drizzle/bug755201

« back to all changes in this revision

Viewing changes to plugin/slave/module.cc

  • Committer: Lee Bieber
  • Date: 2011-03-28 18:11:45 UTC
  • mfrom: (2254.1.2 build)
  • Revision ID: kalebral@gmail.com-20110328181145-tfsb6s5ozhuvhfoq
Merge Patrick - Tweaked dbqp so that the existing slave tests work.
Merge Stewart - remove over 1000 lines of mysys

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 */