~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/slave/replication_slave.h

  • Committer: David Shrewsbury
  • Date: 2011-03-07 21:42:32 UTC
  • mto: (2223.1.4 build)
  • mto: This revision was merged to the branch mainline in revision 2225.
  • Revision ID: shrewsbury.dave@gmail.com-20110307214232-bu5327spnr48opws
Add new --slave.max-commit-id option to control where we begin reading the master transaction log.

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;