~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/slave/replication_slave.h

  • 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:
60
60
    return _error;
61
61
  }
62
62
 
 
63
  /**
 
64
   * Set the initial value for the slave's maximum commit ID.
 
65
   *
 
66
   * This value basically determines where to start retrieving events from
 
67
   * the master. Normally this is computed automatically based on the
 
68
   * contents of the queue and/or the last applied commit ID. This allows
 
69
   * us to override those values and start from another point. E.g., new
 
70
   * slave provisioning or skipping a trouble statement.
 
71
   *
 
72
   * @param[in] value The commit ID value.
 
73
   */
 
74
  void setMaxCommitId(uint64_t value)
 
75
  {
 
76
    _producer.setMaxCommitId(value);
 
77
  }
 
78
 
63
79
private:
64
80
  std::string _config_file;
65
81
  std::string _error;