mirror of
https://github.com/ceph/ceph
synced 2025-01-14 15:04:30 +00:00
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:
parent
f84e776442
commit
471787f1ea
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user