From: chunmei-liu Date: Wed, 31 Mar 2021 21:41:47 +0000 (-0700) Subject: crimson/seastore:fix scan_extents in journal.cc X-Git-Tag: v17.1.0~2417^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c833212f0a140178ea068cf56369b7ce6e315f77;p=ceph.git crimson/seastore:fix scan_extents in journal.cc Signed-off-by: chunmei-liu --- diff --git a/src/crimson/os/seastore/journal.cc b/src/crimson/os/seastore/journal.cc index f2b5a7b97ee41..26db668087045 100644 --- a/src/crimson/os/seastore/journal.cc +++ b/src/crimson/os/seastore/journal.cc @@ -682,7 +682,7 @@ Journal::scan_extents_ret Journal::scan_extents( return scan_valid_records( cursor, segment_nonce, - std::numeric_limits::max(), + bytes_to_read, dhandler).safe_then([](auto){}); }); }).safe_then([ret=std::move(ret)] {