From: Li Wang Date: Fri, 30 Dec 2016 14:15:15 +0000 (+0000) Subject: os/bluestor/BitAllocator.h: fix uninitialized member X-Git-Tag: v12.0.0~249^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=df961dd338b22f7c3527fb1ac0e23e778eb9a2ea;p=ceph.git os/bluestor/BitAllocator.h: fix uninitialized member Silence Coverity 1398206 Signed-off-by: Li Wang --- diff --git a/src/os/bluestore/BitAllocator.h b/src/os/bluestore/BitAllocator.h index 38150fbd40e..350de70ec87 100644 --- a/src/os/bluestore/BitAllocator.h +++ b/src/os/bluestore/BitAllocator.h @@ -194,6 +194,7 @@ public: }; typedef enum bmap_area_type { + UNDEFINED = 0, ZONE = 1, LEAF = 2, NON_LEAF = 3 @@ -263,7 +264,7 @@ public: int64_t get_level(); bmap_area_type_t get_type(); virtual void dump_state(int& count) = 0; - BitMapArea(CephContext* cct) : cct(cct) {} + BitMapArea(CephContext* cct) : cct(cct), m_type(UNDEFINED) {} virtual ~BitMapArea() { } };