From 0e4fd5852843e9411c24afe18bc158951632b297 Mon Sep 17 00:00:00 2001 From: lixiaoy1 Date: Tue, 11 Aug 2020 12:26:01 -0400 Subject: [PATCH] rbd/rwl: fix the construction of ContextWQ Fix the build issue caused by the commit c11594a which changed the constructor of ContextWQ. Signed-off-by: Li, Xiaoyan --- src/librbd/cache/ReplicatedWriteLog.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/librbd/cache/ReplicatedWriteLog.cc b/src/librbd/cache/ReplicatedWriteLog.cc index d5763a75e66f4..000e27e516b0f 100644 --- a/src/librbd/cache/ReplicatedWriteLog.cc +++ b/src/librbd/cache/ReplicatedWriteLog.cc @@ -61,7 +61,9 @@ ReplicatedWriteLog::ReplicatedWriteLog(I &image_ctx, librbd::cache::rwl::Imag 4, ""), m_work_queue("librbd::cache::ReplicatedWriteLog::work_queue", - image_ctx.config.template get_val("rbd_op_thread_timeout"), + ceph::make_timespan( + image_ctx.config.template get_val( + "rbd_op_thread_timeout")), &m_thread_pool) { CephContext *cct = m_image_ctx.cct; -- 2.39.5