From: Sage Weil Date: Mon, 28 Nov 2016 19:09:45 +0000 (-0500) Subject: os/bluestore/BlueFS: init iocv X-Git-Tag: v11.1.0~120^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ff0abab8c45bc3ee0712120dceb2df9528853ff1;p=ceph.git os/bluestore/BlueFS: init iocv CID 1396119 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR) 2. uninit_member: Non-static class member field iocv._M_elems is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlueFS.h b/src/os/bluestore/BlueFS.h index f74d6f442376..f3257e3812d7 100644 --- a/src/os/bluestore/BlueFS.h +++ b/src/os/bluestore/BlueFS.h @@ -131,6 +131,7 @@ public: pos(0), buffer_appender(buffer.get_page_aligned_appender()) { ++file->num_writers; + iocv.fill(nullptr); } // NOTE: caller must call BlueFS::close_writer() ~FileWriter() {