CID
1238905 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
uninit_member: Non-static class member want_state is not initialized
in this constructor nor in any functions that it calls.
uninit_member: Non-static class member last_send is not initialized
in this constructor nor in any functions that it calls.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
(cherry picked from commit
ff6148324ad0957f74e8b4b49c1a1e8df9fb94e4)
#include "messages/MMDSBeacon.h"
#include "mon/MonClient.h"
-#include "mds/MDS.h"
#include "mds/MDLog.h"
+#include "mds/MDS.h"
+#include "mds/MDSMap.h"
#include "mds/Locker.h"
#include "Beacon.h"
Beacon::Beacon(CephContext *cct_, MonClient *monc_, std::string name_) :
Dispatcher(cct_), lock("Beacon"), monc(monc_), timer(g_ceph_context, lock), name(name_)
{
+ want_state = MDSMap::STATE_NULL;
+ last_send = 0;
last_seq = 0;
sender = NULL;
was_laggy = false;
// Internal beacon state
version_t last_send;
- version_t last_seq; // last seq sent to monitor
+ version_t last_seq; // last seq sent to monitor
std::map<version_t,utime_t> seq_stamp; // seq # -> time sent
- utime_t last_acked_stamp; // last time we sent a beacon that got acked
+ utime_t last_acked_stamp; // last time we sent a beacon that got acked
utime_t last_mon_reconnect;
bool was_laggy;
utime_t laggy_until;