-
Notifications
You must be signed in to change notification settings - Fork 1
/
paxos_vc.cpp
executable file
·77 lines (59 loc) · 2.24 KB
/
paxos_vc.cpp
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// Routines for Paxos view change
#include <set>
#include <algorithm>
#include "paxmsg.h"
#include "paxserver.h"
#include "make_unique.h"
#include "log.h"
///////////////////////////////////////////////////////////////////
// View change
void paxserver::initiate_vc(bool include_me) {
MASSERT(0, "initiate_vc not implemented\n");
}
void paxserver::become_underling(const viewid_t& newvid, node_id_t mgr,
std::unique_ptr<view_t> newview) {
MASSERT(0, "become_underling not implemented\n");
}
void paxserver::view_change_arg(const struct view_change_arg& vc_arg) {
MASSERT(0, "view_change_arg not implemented\n");
}
void paxserver::view_change_reject(const struct view_change_reject& vc_rej) {
MASSERT(0, "view_change_reject not implemented\n");
}
// One key question for creating new views is default include
// or default exclude from Vold. We default exclude
// Also, this allows views with only two servers
// Ends with manager accepting the new view
void paxserver::form_newview() {
MASSERT(0, "form_newview not implemented\n");
}
// Manager
void paxserver::announce_newview() {
MASSERT(0, "announce_newview not implemented\n");
}
void paxserver::view_change_accept(const struct view_change_accept& vc_acc) {
MASSERT(0, "new_change_accept not implemented\n");
}
void paxserver::catchup_state(const view_t& view) {
MASSERT(0, "catchup_state not implemented\n");
}
void paxserver::new_view_arg(const struct new_view_arg& nv_arg) {
MASSERT(0, "new_view_arg not implemented\n");
}
void paxserver::new_view_res(const struct new_view_res& nv_res) {
MASSERT(0, "new_view_res not implemented\n");
}
// Our protocol only requires transfer of paxobj
// This implies that our paxobj state is "manageably small", i.e., not a storage system
void paxserver::getstate_arg(const struct getstate_arg& gs_arg) {
MASSERT(0, "getstate_arg not implemented\n");
}
void paxserver::getstate_res(struct getstate_res& gs_res) {
MASSERT(0, "getstate_res not implemented\n");
}
void paxserver::init_view_request(const struct init_view_request& iv_req) {
MASSERT(0, "init_view_request not implemented\n");
}
void paxserver::init_view_arg(const struct init_view_arg& iva) {
MASSERT(0, "init_view_arg not implemented\n");
}