From: Yehuda Sadeh Date: Thu, 28 Jun 2018 22:20:30 +0000 (-0700) Subject: rgw: create a dummy flusher X-Git-Tag: v14.1.0~616^2~72 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e1ddffd01c5c51b41835de6917123fd74e9bfe64;p=ceph.git rgw: create a dummy flusher Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_formats.h b/src/rgw/rgw_formats.h index 81cc5478d06..10cc0debfe4 100644 --- a/src/rgw/rgw_formats.h +++ b/src/rgw/rgw_formats.h @@ -125,4 +125,12 @@ public: RGWStreamFlusher(Formatter *f, ostream& _os) : RGWFormatterFlusher(f), os(_os) {} }; +class RGWNullFlusher : public RGWFormatterFlusher { +protected: + void do_flush() override { + } +public: + RGWNullFlusher() : RGWFormatterFlusher(nullptr) {} +}; + #endif