]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: Initialization of class member variables 17696/head
authoramitkuma <amitkuma@redhat.com>
Wed, 13 Sep 2017 16:04:59 +0000 (21:34 +0530)
committeramitkuma <amitkuma@redhat.com>
Thu, 14 Sep 2017 12:10:41 +0000 (17:40 +0530)
commit2ae36e54f1cceb8ed28e237f7b6b430b652efd1f
tree8910ed5e93f7242ad975aca8ff5bcde740dee9e7
parent07159477ee3c124a8f93b8636e42e6c30c91ab7a
librbd: Initialization of class member variables

Fixes the coverity issues:

** 1402627 Uninitialized scalar field
CID 1402627 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member promotion_state is not
initialized in this constructor nor in any functions that it calls.

** 1402630 Uninitialized scalar field
CID 1402630 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member m_promotion_state is not
initialized in this constructor nor in any functions that it calls.

** 1402631 Uninitialized scalar field
CID 1402631 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member m_promotion_state is not
initialized in this constructor nor in any functions that it calls.

** 1402632 Uninitialized scalar field
CID 1402632 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member tag_tid is not initialized
in this constructor nor in any functions that it calls.

Signed-off-by: Amit Kumar <amitkuma@redhat.com>
src/librbd/Journal.cc
src/librbd/api/Mirror.cc
src/librbd/mirror/DemoteRequest.h
src/librbd/mirror/PromoteRequest.h