Merge pull request #17792 from amitkumar50/cov-misc-5

messages,journal: Initialization of stats_period,m_active_set

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Kefu Chai 2017-11-22 14:44:06 +08:00 committed by GitHub
commit 1a390bf3d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ private:
bool m_commit_position_valid = false;
ObjectPosition m_commit_position;
SplayedObjectPositions m_commit_positions;
uint64_t m_active_set;
uint64_t m_active_set = 0;
boost::optional<uint64_t> m_active_tag_tid = boost::none;
boost::optional<uint64_t> m_prune_tag_tid = boost::none;

View File

@ -27,7 +27,7 @@ class MMgrConfigure : public Message
static const int COMPAT_VERSION = 1;
public:
uint32_t stats_period;
uint32_t stats_period = 0;
// Default 0 means if unspecified will include all stats
uint32_t stats_threshold = 0;