From: Danny Al-Gaaf Date: Fri, 12 Jun 2015 08:39:14 +0000 (+0200) Subject: mds/MDCache.h: init some members of open_ino_info_t in ctor X-Git-Tag: v9.1.0~446^2~23 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=08506f3360fadc2283e261e0d9cf23bb040d2cf9;p=ceph.git mds/MDCache.h: init some members of open_ino_info_t in ctor Fix for: CID 1026809 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) uninit_member: Non-static class member want_replica is not initialized in this constructor nor in any functions that it calls. uninit_member: Non-static class member want_xlocked is not initialized in this constructor nor in any functions that it calls. uninit_member: Non-static class member tid is not initialized in this constructor nor in any functions that it calls. uninit_member: Non-static class member pool is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/mds/MDCache.h b/src/mds/MDCache.h index 78e97154e11..18d2c36edf7 100644 --- a/src/mds/MDCache.h +++ b/src/mds/MDCache.h @@ -894,7 +894,8 @@ protected: int64_t pool; list waiters; open_ino_info_t() : checking(MDS_RANK_NONE), auth_hint(MDS_RANK_NONE), - check_peers(true), fetch_backtrace(true), discover(false) {} + check_peers(true), fetch_backtrace(true), discover(false), + want_replica(false), want_xlocked(false), tid(0), pool(-1) {} }; ceph_tid_t open_ino_last_tid; map opening_inodes;