]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/Migrator.h: init some export_state_t members in ctor
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 13 Mar 2014 17:30:54 +0000 (18:30 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 13 Mar 2014 17:30:54 +0000 (18:30 +0100)
CID 1188165 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 2. uninit_member: Non-static class member "state" is not initialized in
  this constructor nor in any functions that it calls.
 4. uninit_member: Non-static class member "peer" is not initialized in this
  constructor nor in any functions that it calls.
 6. uninit_member: Non-static class member "tid" is not initialized in this
  constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mds/Migrator.h

index 0bf35f08f35b6eff6165b1ef9fa1b150cf701d13..928d197bf88e080daa2c4fae109e04a43083623b 100644 (file)
@@ -96,7 +96,8 @@ protected:
     utime_t last_cum_auth_pins_change;
     int last_cum_auth_pins;
     int num_remote_waiters; // number of remote authpin waiters
-    export_state_t() : mut(NULL), last_cum_auth_pins(0), num_remote_waiters(0) {}
+    export_state_t() : state(0), peer(0), tid(0), mut(NULL), 
+                      last_cum_auth_pins(0), num_remote_waiters(0) {}
   };
 
   map<CDir*, export_state_t>  export_state;