]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: journal::StandardPolicy template defaults to ImageCtx 39305/head
authorIlya Dryomov <idryomov@gmail.com>
Tue, 9 Feb 2021 13:04:39 +0000 (14:04 +0100)
committerJason Dillaman <dillaman@redhat.com>
Thu, 11 Feb 2021 19:33:05 +0000 (14:33 -0500)
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit b90ee634fa2aca4d1223ee19f43d026917aa969d)

src/librbd/ImageCtx.cc

index 08e87c5deea7aa66b0647a75e0e047bd01f5ad5d..ed836ed8e4e41dd40665d48097aa34060f22cd05 100644 (file)
@@ -141,7 +141,7 @@ librados::IoCtx duplicate_io_ctx(librados::IoCtx& io_ctx) {
     } else {
       exclusive_lock_policy = new exclusive_lock::StandardPolicy(this);
     }
-    journal_policy = new journal::StandardPolicy<ImageCtx>(this);
+    journal_policy = new journal::StandardPolicy(this);
   }
 
   ImageCtx::ImageCtx(const string &image_name, const string &image_id,