Skip to content

Commit

Permalink
common/io_exerciser: Make sure Sequence 10 removes objects after fini…
Browse files Browse the repository at this point in the history
…shing running

Signed-off-by: Jon Bailey <[email protected]>
  • Loading branch information
JonBailey1993 committed Jan 7, 2025
1 parent d8712e6 commit f50106f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/common/io_exerciser/EcIoSequence.cc
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ ceph::io_exerciser::Seq10::Seq10(std::pair<int, int> obj_size_range, int seed,
: EcIoSequence(obj_size_range, seed),
offset(0),
length(1),
inject_error_done(false),
failed_write_done(false),
read_done(false),
successful_write_done(false),
Expand Down Expand Up @@ -239,6 +240,7 @@ std::unique_ptr<ceph::io_exerciser::IoOp> ceph::io_exerciser::Seq10::_next() {

if (offset + length >= obj_size) {
if (!test_all_lengths) {
remove = true;
done = true;
return BarrierOp::generate();
}
Expand All @@ -247,6 +249,7 @@ std::unique_ptr<ceph::io_exerciser::IoOp> ceph::io_exerciser::Seq10::_next() {
length++;
if (length > obj_size) {
if (!test_all_sizes) {
remove = true;
done = true;
return BarrierOp::generate();
}
Expand Down

0 comments on commit f50106f

Please sign in to comment.