]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: treat flush op as a write op
authorJason Dillaman <dillaman@redhat.com>
Thu, 30 Jul 2015 15:34:54 +0000 (11:34 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 13 Nov 2015 04:27:07 +0000 (23:27 -0500)
This will ensure that the journal is properly opened to handle
appending events.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/AioImageRequest.h

index 6fdc9f9712dfd9154d710401700bdc0f524fdd41..c6037e67e0140eedf9a382c2e85d71fc1ee47186 100644 (file)
@@ -195,6 +195,10 @@ public:
     : AioImageRequest(image_ctx, aio_comp) {
   }
 
+  virtual bool is_write_op() const {
+    return true;
+  }
+
 protected:
   virtual void send_request();
   virtual const char *get_request_type() const {