mirror of
https://github.com/ceph/ceph
synced 2025-01-03 09:32:43 +00:00
crimson/os/seastore/journal: fix error returns in replay
SegmentManager is allowed to return an enoent if the segment isn't readable. Signed-off-by: Samuel Just <sjust@redhat.com>
This commit is contained in:
parent
9628f34018
commit
dbd9e32adc
@ -240,8 +240,14 @@ Journal::find_replay_segments_fut Journal::find_replay_segments()
|
||||
segments.emplace_back(i, std::move(header));
|
||||
return find_replay_segments_ertr::now();
|
||||
}).handle_error(
|
||||
crimson::ct_error::enoent::handle([i](auto) {
|
||||
logger().debug(
|
||||
"find_replay_segments: segment {} not available for read",
|
||||
i);
|
||||
return find_replay_segments_ertr::now();
|
||||
}),
|
||||
find_replay_segments_ertr::pass_further{},
|
||||
crimson::ct_error::discard_all{}
|
||||
crimson::ct_error::assert_all{}
|
||||
);
|
||||
}).safe_then([this, &segments]() mutable -> find_replay_segments_fut {
|
||||
logger().debug(
|
||||
|
Loading…
Reference in New Issue
Block a user