osd/PG.h: uninit var in ctor OndiskLog

CID 717342: Uninitialized scalar field (UNINIT_CTOR)At (2): Non-static class
member "has_checksums" is not initialized in this constructor nor in any
functions that it calls.

Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
Samuel Just 2012-08-29 16:31:20 -07:00 committed by Sage Weil
parent f84e776442
commit 471787f1ea

View File

@ -281,7 +281,8 @@ public:
uint64_t zero_to; // first non-zeroed byte of log.
bool has_checksums;
OndiskLog() : tail(0), head(0), zero_to(0) {}
OndiskLog() : tail(0), head(0), zero_to(0),
has_checksums(true) {}
uint64_t length() { return head - tail; }
bool trim_to(eversion_t v, ObjectStore::Transaction& t);