summaryrefslogtreecommitdiffstats
path: root/src/test/librbd/journal
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2023-12-09 21:00:51 +0100
committerIlya Dryomov <idryomov@gmail.com>2023-12-09 21:35:55 +0100
commitd790b57b4bd3868cf12941c565b6906534e19f91 (patch)
tree0877f9e564702620e046ff0a44b0cc2ed721066e /src/test/librbd/journal
parenttest/librbd: avoid config-related crashes in DiscardWithPruneWriteOverlap (diff)
downloadceph-d790b57b4bd3868cf12941c565b6906534e19f91.tar.xz
ceph-d790b57b4bd3868cf12941c565b6906534e19f91.zip
test/librbd: actually alternate overlaps in DiscardWithPruneWriteOverlap
Make sense of the inner loop in write_thread. The crash on "it != m_events.end()" assert reproduces even faster this way. Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'src/test/librbd/journal')
-rw-r--r--src/test/librbd/journal/test_Stress.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/librbd/journal/test_Stress.cc b/src/test/librbd/journal/test_Stress.cc
index 5abdc8bae80..d3df9147ae6 100644
--- a/src/test/librbd/journal/test_Stress.cc
+++ b/src/test/librbd/journal/test_Stress.cc
@@ -86,7 +86,7 @@ TEST_F(TestJournalStress, DiscardWithPruneWriteOverlap) {
bufferlist payload_bl;
payload_bl.append(payload);
auto aio_comp = new librbd::io::AioCompletion();
- api::Io<>::aio_write(*ictx, aio_comp, 0, payload.size(),
+ api::Io<>::aio_write(*ictx, aio_comp, offset, payload.size(),
std::move(payload_bl), 0, true);
ASSERT_EQ(0, aio_comp->wait_for_complete());
aio_comp->release();