void reg1(int proc, handler *);
protected:
map<int, handler *> procs;
- config *cfg;
+ unique_ptr<config> cfg;
rsm_state_transfer *stf = nullptr;
rpcs *rsmrpc;
// On slave: expected viewstamp of next invoke request
vector<string> backups; // A list of unsynchronized backups
// For testing purposes
- rpcs *testsvr;
+ unique_ptr<rpcs> testsvr;
bool partitioned;
bool dopartition;
bool break1;
void commit_change(unsigned vid);
template<class F, class C=void> void reg(int proc, F f, C *c=nullptr);
+
+ void start();
};
template<class F, class C> void rsm::reg(int proc, F f, C *c) {