]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
librbd: default template parameter for C_SparseReadRequest
authorJason Dillaman <dillaman@redhat.com>
Tue, 7 Nov 2017 19:17:25 +0000 (14:17 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 16 Nov 2017 12:31:59 +0000 (07:31 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/io/ReadResult.h

index 76c9f0c21ca925426c6e0ce4a6423c114df833b7..f11e83286a6f4200c55e2bfc66d76d49ea0f0301 100644 (file)
@@ -15,6 +15,9 @@
 struct CephContext;
 
 namespace librbd {
+
+struct ImageCtx;
+
 namespace io {
 
 struct AioCompletion;
@@ -54,7 +57,7 @@ public:
                 uint64_t offset, size_t length, bufferlist &bl, int r);
   };
 
-  template <typename ImageCtxT>
+  template <typename ImageCtxT = ImageCtx>
   struct C_SparseReadRequest : public C_SparseReadRequestBase {
     ObjectReadRequest<ImageCtxT> *request;
     Extents buffer_extents;