]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: add initialization of member variables
authorKen Iizawa <iizawa.ken@fujitsu.com>
Fri, 5 Mar 2021 07:04:25 +0000 (16:04 +0900)
committerKen Iizawa <iizawa.ken@fujitsu.com>
Sat, 3 Apr 2021 16:46:09 +0000 (01:46 +0900)
Fixes: https://tracker.ceph.com/issues/48182
Signed-off-by: Ken Iizawa <iizawa.ken@fujitsu.com>
src/osd/PrimaryLogPG.h

index b0a63b1262e41cf6ee67325ae5820363fbf0bf05..f386f9980a84e214fceb6dc93f0586a974623d0d 100644 (file)
@@ -259,11 +259,11 @@ public:
   typedef std::shared_ptr<FlushOp> FlushOpRef;
 
   struct CLSGatherOp {
-    OpContext *ctx;
+    OpContext *ctx = nullptr;
     ObjectContextRef obc;
     OpRequestRef op;
     std::vector<ceph_tid_t> objecter_tids;
-    int rval;
+    int rval = 0;
 
     CLSGatherOp(OpContext *ctx_, ObjectContextRef obc_, OpRequestRef op_)
       : ctx(ctx_), obc(obc_), op(op_)  {}