]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/tools/store_nbd: drop unnecessary seastar::now()
authorKefu Chai <kchai@redhat.com>
Thu, 17 Jun 2021 05:26:14 +0000 (13:26 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 18 Jun 2021 01:05:35 +0000 (09:05 +0800)
the body of handle_exception() is a synchronous operation, there is no
need to return seastar::now() here.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/tools/store_nbd/store-nbd.cc

index 0069a79049a915611605961e12f9547a40de02cf..39b203b72177151bb1484b161ccf4b39b8b1fc1d 100644 (file)
@@ -449,7 +449,6 @@ void NBDHandler::run()
                                        output.close());
             }).discard_result().handle_exception([](auto e) {
               logger().error("NBDHandler::run saw exception {}", e);
-              return seastar::now();
             });
           });
       });