~ubuntu-branches/ubuntu/raring/ceph/raring

« back to all changes in this revision

Viewing changes to src/mon/Paxos.h

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2012-02-05 10:07:38 UTC
  • mfrom: (1.1.7) (0.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20120205100738-00s0bxx93mamy8tk
Tags: 0.41-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
  utime_t last_commit_time;
113
113
  version_t accepted_pn;
114
114
  version_t accepted_pn_from;
 
115
  map<int,version_t> peer_first_committed, peer_last_committed;
115
116
 
116
117
  // active (phase 2)
117
118
  utime_t lease_expire;
251
252
 
252
253
  void init();
253
254
 
254
 
  void election_starting();
 
255
  void restart();
255
256
  void leader_init();
256
257
  void peon_init();
257
258
 
267
268
    waiting_for_active.push_back(c);
268
269
  }
269
270
 
270
 
  void trim_to(version_t first);
 
271
  void trim_to(version_t first, bool force=false);
271
272
  
272
273
  // read
273
274
  version_t get_version() { return last_committed; }
298
299
  // if state values are incrementals, it is usefult to keep
299
300
  // the latest copy of the complete structure.
300
301
  void stash_latest(version_t v, bufferlist& bl);
301
 
  version_t get_latest(bufferlist& bl);
 
302
  version_t get_stashed(bufferlist& bl);
 
303
  version_t get_stashed_version() { return latest_stashed; }
302
304
 
303
305
  version_t get_first_committed() { return first_committed; }
304
306