From: Jason Dillaman Date: Thu, 30 Jul 2015 15:34:54 +0000 (-0400) Subject: librbd: treat flush op as a write op X-Git-Tag: v10.0.1~52^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=107bca756511a9cb69f9a5342afe86ee0334406b;p=ceph.git librbd: treat flush op as a write op This will ensure that the journal is properly opened to handle appending events. Signed-off-by: Jason Dillaman --- diff --git a/src/librbd/AioImageRequest.h b/src/librbd/AioImageRequest.h index 6fdc9f9712df..c6037e67e014 100644 --- a/src/librbd/AioImageRequest.h +++ b/src/librbd/AioImageRequest.h @@ -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 {