diff options
author | Jos Collin <jcollin@redhat.com> | 2017-06-28 13:53:55 +0200 |
---|---|---|
committer | Jos Collin <jcollin@redhat.com> | 2017-06-28 13:53:59 +0200 |
commit | 0be330be8126a518407da1289f897c7afc07fc8e (patch) | |
tree | 8827976d59e4552a3b1c71334e2377818b218cc6 /src/mds/events/ESession.h | |
parent | mds/events: Initialize Non-static class members in fullbit (diff) | |
download | ceph-0be330be8126a518407da1289f897c7afc07fc8e.tar.xz ceph-0be330be8126a518407da1289f897c7afc07fc8e.zip |
mds/events: Initialize Non-static class members in ESession
CID 717250: Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member cmapv is not initialized in this constructor nor in any functions that it calls.
4. uninit_member: Non-static class member inotablev is not initialized in this constructor nor in any functions that it calls.
Signed-off-by: Jos Collin <jcollin@redhat.com>
Diffstat (limited to 'src/mds/events/ESession.h')
-rw-r--r-- | src/mds/events/ESession.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mds/events/ESession.h b/src/mds/events/ESession.h index 83b9a8fc0fd..53f320b4263 100644 --- a/src/mds/events/ESession.h +++ b/src/mds/events/ESession.h @@ -24,10 +24,10 @@ class ESession : public LogEvent { protected: entity_inst_t client_inst; bool open; // open or close - version_t cmapv; // client map version + version_t cmapv{0}; // client map version interval_set<inodeno_t> inos; - version_t inotablev; + version_t inotablev{0}; // Client metadata stored during open std::map<std::string, std::string> client_metadata; |