From e1ddffd01c5c51b41835de6917123fd74e9bfe64 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Thu, 28 Jun 2018 15:20:30 -0700 Subject: [PATCH] rgw: create a dummy flusher Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_formats.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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