From df961dd338b22f7c3527fb1ac0e23e778eb9a2ea Mon Sep 17 00:00:00 2001 From: Li Wang Date: Fri, 30 Dec 2016 14:15:15 +0000 Subject: [PATCH] os/bluestor/BitAllocator.h: fix uninitialized member Silence Coverity 1398206 Signed-off-by: Li Wang --- src/os/bluestore/BitAllocator.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() { } }; -- 2.39.5