mirror of
https://github.com/ceph/ceph
synced 2024-12-21 02:42:48 +00:00
osd/osd_types: RWState: initialize snaptrimmer_write_marker
** CID 1204295: Uninitialized scalar field (UNINIT_CTOR) /osd/osd_types.h: 2716 in ObjectContext::RWState::RWState()() Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
4e5f442028
commit
b4eb502508
@ -2713,7 +2713,12 @@ public:
|
||||
/// if set, requeue snaptrim on lock release
|
||||
bool snaptrimmer_write_marker;
|
||||
|
||||
RWState() : state(RWNONE), count(0), backfill_read_marker(false) {}
|
||||
RWState()
|
||||
: state(RWNONE),
|
||||
count(0),
|
||||
backfill_read_marker(false),
|
||||
snaptrimmer_write_marker(false)
|
||||
{}
|
||||
bool get_read(OpRequestRef op) {
|
||||
if (get_read_lock()) {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user