From: Ken Iizawa Date: Fri, 5 Mar 2021 07:04:25 +0000 (+0900) Subject: osd: add initialization of member variables X-Git-Tag: v17.1.0~2291^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=714fe1a7f237ef9ea5d862e7387749bded02f7e8;p=ceph.git osd: add initialization of member variables Fixes: https://tracker.ceph.com/issues/48182 Signed-off-by: Ken Iizawa --- diff --git a/src/osd/PrimaryLogPG.h b/src/osd/PrimaryLogPG.h index b0a63b1262e..f386f9980a8 100644 --- a/src/osd/PrimaryLogPG.h +++ b/src/osd/PrimaryLogPG.h @@ -259,11 +259,11 @@ public: 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_) {}