-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlog.h
More file actions
28 lines (23 loc) · 649 Bytes
/
log.h
File metadata and controls
28 lines (23 loc) · 649 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef log_h
#define log_h
#include <string>
#include <vector>
class acceptor;
class log {
private:
std::string name;
acceptor *pxs;
public:
log (acceptor*, std::string _me);
std::string dump();
void restore(std::string s);
void logread(void);
/* Log a committed paxos instance*/
void loginstance(unsigned instance, std::string v);
/* Log the highest proposal number that the local paxos acceptor has ever seen */
void logprop(prop_t n_h);
/* Log the proposal (proposal number and value) that the local paxos acceptor
accept has ever accepted */
void logaccept(prop_t n_a, std::string v);
};
#endif /* log_h */