Fixed two major bugs in paxos.cc.
[invirt/third/libt4.git] / rsm.h
diff --git a/rsm.h b/rsm.h
index 18ac8af..ef919ff 100644 (file)
--- a/rsm.h
+++ b/rsm.h
@@ -22,12 +22,12 @@ class rsm : public config_view_change {
     protected:
         map<int, handler *> procs;
         config *cfg;
-        class rsm_state_transfer *stf;
+        rsm_state_transfer *stf = nullptr;
         rpcs *rsmrpc;
         // On slave: expected viewstamp of next invoke request
         // On primary: viewstamp for the next request from rsm_client
-        viewstamp myvs;
-        viewstamp last_myvs;   // Viewstamp of the last executed request
+        viewstamp last_myvs{0, 0};   // Viewstamp of the last executed request
+        viewstamp myvs{0, 1};
         string primary;
         bool insync;
         bool inviewchange;