]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/BlueFS: init iocv
authorSage Weil <sage@redhat.com>
Mon, 28 Nov 2016 19:09:45 +0000 (14:09 -0500)
committerSage Weil <sage@redhat.com>
Mon, 28 Nov 2016 19:29:12 +0000 (14:29 -0500)
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 <sage@redhat.com>
src/os/bluestore/BlueFS.h

index f74d6f442376215dcda33229c932636a62a72397..f3257e3812d7114380010b36f2e206c3ac56e5d1 100644 (file)
@@ -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() {