From: Danny Al-Gaaf Date: Tue, 23 Feb 2016 10:56:27 +0000 (+0100) Subject: os/kstore/KStore.cc: init nid_last in ctor X-Git-Tag: v11.1.0~327^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ac387e110bb3baf8fda382350677c5027c81c2b3;p=ceph.git os/kstore/KStore.cc: init nid_last in ctor Fix for: CID 1351706 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) uninit_member: Non-static class member nid_last is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/os/kstore/KStore.cc b/src/os/kstore/KStore.cc index ff034f4be4fe..9f68977c2875 100755 --- a/src/os/kstore/KStore.cc +++ b/src/os/kstore/KStore.cc @@ -631,6 +631,7 @@ KStore::KStore(CephContext *cct, const string& path) fsid_fd(-1), mounted(false), coll_lock("KStore::coll_lock"), + nid_last(0), nid_max(0), throttle_ops(cct, "kstore_max_ops", cct->_conf->kstore_max_ops), throttle_bytes(cct, "kstore_max_bytes", cct->_conf->kstore_max_bytes),