]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-mirror: don't default replay_requires_remote_image() implementation
authorIlya Dryomov <idryomov@gmail.com>
Fri, 21 Jan 2022 12:41:46 +0000 (13:41 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 27 Jan 2022 20:28:35 +0000 (21:28 +0100)
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit ccfbf3e97ed1f50df0adcbec812f1b11fe22cace)

src/tools/rbd_mirror/image_replayer/StateBuilder.h
src/tools/rbd_mirror/image_replayer/journal/StateBuilder.h

index 844c3133bd169d2c8d4add8274ece5f5f36dd0fd..99007ba5e21a8b8469075cffe3070e6a7c3538fd 100644 (file)
@@ -51,9 +51,7 @@ public:
   virtual image_sync::SyncPointHandler* create_sync_point_handler() = 0;
   void destroy_sync_point_handler();
 
-  virtual bool replay_requires_remote_image() const {
-    return false;
-  }
+  virtual bool replay_requires_remote_image() const = 0;
 
   void close_remote_image(Context* on_finish);
 
index 054c24674f084687c069403d9ec51e0eb4d5aa42..790d1390bec6a588e411d132061cca6f22c184a4 100644 (file)
@@ -42,6 +42,10 @@ public:
 
   image_sync::SyncPointHandler* create_sync_point_handler() override;
 
+  bool replay_requires_remote_image() const override {
+    return false;
+  }
+
   BaseRequest* create_local_image_request(
       Threads<ImageCtxT>* threads,
       librados::IoCtx& local_io_ctx,