]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/os/seastore: use discard_result() to discard futurized value
authorKefu Chai <kchai@redhat.com>
Mon, 5 Jul 2021 14:54:51 +0000 (22:54 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 5 Jul 2021 15:26:13 +0000 (23:26 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/os/seastore/journal.cc

index 3614fbc73ca5cb5c788cb3c3b4c1f4228150150d..84d587564d8da29318528fed7b6966c0d57250dc 100644 (file)
@@ -687,7 +687,7 @@ Journal::scan_extents_ret Journal::scan_extents(
          cursor,
          segment_nonce,
          bytes_to_read,
-         dhandler).safe_then([](auto){});
+         dhandler).discard_result();
       });
   }).safe_then([ret=std::move(ret)] {
     return std::move(*ret);