From 714fe1a7f237ef9ea5d862e7387749bded02f7e8 Mon Sep 17 00:00:00 2001 From: Ken Iizawa Date: Fri, 5 Mar 2021 16:04:25 +0900 Subject: [PATCH] osd: add initialization of member variables Fixes: https://tracker.ceph.com/issues/48182 Signed-off-by: Ken Iizawa --- src/osd/PrimaryLogPG.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osd/PrimaryLogPG.h b/src/osd/PrimaryLogPG.h index b0a63b1262e4..f386f9980a84 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_) {} -- 2.47.3