]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #47379 from NitzanMordhai/wip-nitzan-valgrind-handle-recovery...
authorKefu Chai <tchaikov@gmail.com>
Tue, 9 Aug 2022 16:05:55 +0000 (00:05 +0800)
committerGitHub <noreply@github.com>
Tue, 9 Aug 2022 16:05:55 +0000 (00:05 +0800)
osd: remove invalid put on message

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
1  2 
src/osd/PGBackend.cc

index 69e8a4961d95647e658b64e06722e6874c2ab332,b099a32867d6568f1b756453e6805d796207dcf7..a9f6d00eab69b343cb5faa1b66017544830a6289
@@@ -154,11 -154,9 +154,9 @@@ void PGBackend::handle_recovery_delete(
    ConnectionRef conn = m->get_connection();
  
    gather.set_finisher(new LambdaContext(
 -    [=](int r) {
 +    [=, this](int r) {
        if (r != -EAGAIN) {
        get_parent()->send_message_osd_cluster(reply, conn.get());
-       } else {
-       reply->put();
        }
      }));
    gather.activate();