diff --git a/src/osd/PrimaryLogPG.h b/src/osd/PrimaryLogPG.h index b0a63b1262e41..f386f9980a84e 100644 --- a/src/osd/PrimaryLogPG.h +++ b/src/osd/PrimaryLogPG.h @@ -259,11 +259,11 @@ class PrimaryLogPG : public PG, public PGBackend::Listener { typedef std::shared_ptr FlushOpRef; struct CLSGatherOp { - OpContext *ctx; + OpContext *ctx = nullptr; ObjectContextRef obc; OpRequestRef op; std::vector objecter_tids; - int rval; + int rval = 0; CLSGatherOp(OpContext *ctx_, ObjectContextRef obc_, OpRequestRef op_) : ctx(ctx_), obc(obc_), op(op_) {}