]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: create a dummy flusher
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 28 Jun 2018 22:20:30 +0000 (15:20 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 11 Dec 2018 08:10:41 +0000 (00:10 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_formats.h

index 81cc5478d0627edffd9db1e5586aa08301529e63..10cc0debfe45d39c5eb3dc40b34e4e5ecb4508de 100644 (file)
@@ -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