summaryrefslogtreecommitdiffstats
path: root/src/test/librbd/io/test_mock_ImageRequest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/librbd/io/test_mock_ImageRequest.cc')
-rw-r--r--src/test/librbd/io/test_mock_ImageRequest.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/librbd/io/test_mock_ImageRequest.cc b/src/test/librbd/io/test_mock_ImageRequest.cc
index 55dd7549c0f..de27ef8b1ed 100644
--- a/src/test/librbd/io/test_mock_ImageRequest.cc
+++ b/src/test/librbd/io/test_mock_ImageRequest.cc
@@ -202,8 +202,11 @@ TEST_F(TestMockIoImageRequest, AioWriteJournalAppendDisabled) {
C_SaferCond aio_comp_ctx;
AioCompletion *aio_comp = AioCompletion::create_and_start(
&aio_comp_ctx, ictx, AIO_TYPE_WRITE);
- MockImageWriteRequest mock_aio_image_write(mock_image_ctx, aio_comp, 0, 1, "1",
- 0);
+
+ bufferlist bl;
+ bl.append("1");
+ MockImageWriteRequest mock_aio_image_write(mock_image_ctx, aio_comp,
+ {{0, 1}}, std::move(bl), 0);
{
RWLock::RLocker owner_locker(mock_image_ctx.owner_lock);
mock_aio_image_write.send();