From 08506f3360fadc2283e261e0d9cf23bb040d2cf9 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Fri, 12 Jun 2015 10:39:14 +0200 Subject: [PATCH] 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 --- src/mds/MDCache.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mds/MDCache.h b/src/mds/MDCache.h index 78e97154e114..18d2c36edf78 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; -- 2.47.3