]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd/rwl: fix the construction of ContextWQ 36561/head
authorlixiaoy1 <xiaoyan.li@intel.com>
Tue, 11 Aug 2020 16:26:01 +0000 (12:26 -0400)
committerlixiaoy1 <xiaoyan.li@intel.com>
Wed, 12 Aug 2020 11:24:30 +0000 (07:24 -0400)
Fix the build issue caused by the commit c11594a which changed the constructor
of ContextWQ.

Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
src/librbd/cache/ReplicatedWriteLog.cc

index d5763a75e66f46dbadd182c6754328ab60b4f0ef..000e27e516b0f3f66a3a69fb791cc4da8d54c341 100644 (file)
@@ -61,7 +61,9 @@ ReplicatedWriteLog<I>::ReplicatedWriteLog(I &image_ctx, librbd::cache::rwl::Imag
                   4,
                   ""),
     m_work_queue("librbd::cache::ReplicatedWriteLog::work_queue",
-                 image_ctx.config.template get_val<uint64_t>("rbd_op_thread_timeout"),
+                 ceph::make_timespan(
+                   image_ctx.config.template get_val<uint64_t>(
+                    "rbd_op_thread_timeout")),
                  &m_thread_pool)
 {
   CephContext *cct = m_image_ctx.cct;