]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix another issue_repop() ctx->op null deref
authorSage Weil <sage@newdream.net>
Thu, 2 Feb 2012 21:31:58 +0000 (13:31 -0800)
committerSage Weil <sage@newdream.net>
Thu, 2 Feb 2012 21:31:58 +0000 (13:31 -0800)
Signed-off-by: Sage Weil <sage@newdream.net>
src/osd/ReplicatedPG.cc

index a19634cfb58be4207f36956a1632ddda8a20bff8..6997d3196d42c5ba838a80d07fa074c85eaa482d 100644 (file)
@@ -3062,7 +3062,8 @@ void ReplicatedPG::issue_repop(RepGather *repop, utime_t now,
   int acks_wanted = CEPH_OSD_FLAG_ACK | CEPH_OSD_FLAG_ONDISK;
 
   for (unsigned i=1; i<acting.size(); i++) {
-    ctx->op->mark_sub_op_sent();
+    if (ctx->op)
+      ctx->op->mark_sub_op_sent();
     int peer = acting[i];
     Info &pinfo = peer_info[peer];