From: Danny Al-Gaaf Date: Fri, 13 Oct 2017 18:55:50 +0000 (+0200) Subject: kv/MemDB.h: init some members in constructor X-Git-Tag: v13.0.1~358^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=435b3661fe56a1107d593d50ae0b223b6bc60e2d;p=ceph.git kv/MemDB.h: init some members in constructor Fix for: [src/kv/MemDB.h:59]: (warning) Member variable 'MemDB::m_total_bytes' is not initialized in the constructor. [src/kv/MemDB.h:59]: (warning) Member variable 'MemDB::m_allocated_bytes' is not initialized in the constructor. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/kv/MemDB.h b/src/kv/MemDB.h index dcdcb3abbf1..f42bcc95f6f 100644 --- a/src/kv/MemDB.h +++ b/src/kv/MemDB.h @@ -57,7 +57,8 @@ class MemDB : public KeyValueDB public: MemDB(CephContext *c, const string &path, void *p) : - m_using_btree(false), m_cct(c), m_priv(p), m_db_path(path), iterator_seq_no(1) + m_total_bytes(0), m_allocated_bytes(0), m_using_btree(false), + m_cct(c), m_priv(p), m_db_path(path), iterator_seq_no(1) { //Nothing as of now }