mirror of
https://github.com/ceph/ceph
synced 2025-02-23 02:57:21 +00:00
messages: Initialization of is_primary
Fixes the coverity issue: ** 717269 Uninitialized scalar field CID 717269 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) 2. uninit_member: Non-static class member is_primary is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Amit Kumar amitkuma@redhat.com
This commit is contained in:
parent
50d7320f6d
commit
5012db477c
@ -20,7 +20,7 @@ class MDentryLink : public Message {
|
||||
dirfrag_t subtree;
|
||||
dirfrag_t dirfrag;
|
||||
string dn;
|
||||
bool is_primary;
|
||||
bool is_primary = false;
|
||||
|
||||
public:
|
||||
dirfrag_t get_subtree() { return subtree; }
|
||||
|
Loading…
Reference in New Issue
Block a user