From 52aefaaffc36b8d8b323a2b8800a96e777577de5 Mon Sep 17 00:00:00 2001 From: Mykola Golub Date: Wed, 16 May 2018 10:40:29 +0300 Subject: [PATCH] rbd-mirror: make 'flush' asok command asynchronous Signed-off-by: Mykola Golub (cherry picked from commit 6fce4cabe7874efef780c7adce8479db8571afe7) --- src/tools/rbd_mirror/ImageReplayer.cc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/tools/rbd_mirror/ImageReplayer.cc b/src/tools/rbd_mirror/ImageReplayer.cc index e8de2fa7be7f3..28678172b1727 100644 --- a/src/tools/rbd_mirror/ImageReplayer.cc +++ b/src/tools/rbd_mirror/ImageReplayer.cc @@ -149,13 +149,7 @@ public: } bool call(Formatter *f, stringstream *ss) override { - C_SaferCond cond; - this->replayer->flush(&cond); - int r = cond.wait(); - if (r < 0) { - *ss << "flush: " << cpp_strerror(r); - return false; - } + this->replayer->flush(); return true; } }; -- 2.39.5