~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/slave/replication_schema.h

  • Committer: David Shrewsbury
  • Date: 2011-03-09 17:10:06 UTC
  • mto: (2228.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2229.
  • Revision ID: shrewsbury.dave@gmail.com-20110309171006-ld90oph01m3rex5k
Persist --slave.max-commit-id value to applier_state table.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
  { }
34
34
 
35
35
  bool create();
 
36
 
 
37
  /**
 
38
   * Set initial value of the last applied COMMIT_ID value in applier_state.
 
39
   *
 
40
   * This is used when the server is started with --slave.max-commit-id to
 
41
   * begin reading from the master transaction log at a given point. This
 
42
   * method will persist the value to the applier_state table. If it wasn't
 
43
   * permanently stored immediately, we risk the possibility of losing the
 
44
   * value if the server is again restarted without ever having received
 
45
   * another event from the master (which causes persistence of the value).
 
46
   * An edge case, but still possible.
 
47
   *
 
48
   * @param[in] value The initial value.
 
49
   */
 
50
  bool setInitialMaxCommitId(uint64_t value);
36
51
};
37
52
 
38
53
} /* namespace slave */