From febf32acfa9bb0e47879c1069445ab9600feb2e7 Mon Sep 17 00:00:00 2001 From: Asias He Date: Tue, 17 Mar 2015 09:32:42 +0800 Subject: [PATCH] gossip: Add default constructor for endpoint_state --- gms/endpoint_state.hh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gms/endpoint_state.hh b/gms/endpoint_state.hh index 875091222f..95e2cffb03 100644 --- a/gms/endpoint_state.hh +++ b/gms/endpoint_state.hh @@ -43,6 +43,12 @@ private: db_clock::time_point _update_timestamp; bool _is_alive; public: + endpoint_state() + : _heart_beat_state(0) + , _update_timestamp(db_clock::now()) + , _is_alive(true) { + } + endpoint_state(heart_beat_state initial_hb_state) : _heart_beat_state(initial_hb_state) , _update_timestamp(db_clock::now())