]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PGBackend: release a msg using msg->put() not delete 17233/head
authorKefu Chai <kchai@redhat.com>
Fri, 25 Aug 2017 02:36:56 +0000 (10:36 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 25 Aug 2017 02:47:36 +0000 (10:47 +0800)
fix the regression introduced by 1c18b5cb

Fixes: http://tracker.ceph.com/issues/20913
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit d2d941dd19b9dd6e41429d92cdab8390f9c3084d)

src/osd/PGBackend.cc

index ef500e3351d342a9e32893e5079e45395a577eed..468e29297d0de41e14bad096c23d4ee82d2219ed 100644 (file)
@@ -141,7 +141,7 @@ void PGBackend::handle_recovery_delete(OpRequestRef op)
       if (r != -EAGAIN) {
        get_parent()->send_message_osd_cluster(reply, conn.get());
       } else {
-       delete reply;
+       reply->put();
       }
     }));
   gather.activate();