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:
Sage Weil 2014-04-22 08:29:58 -07:00
parent 4e5f442028
commit b4eb502508

View File

@ -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;