]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-mirror: make 'flush' asok command asynchronous 22180/head
authorMykola Golub <mgolub@suse.com>
Wed, 16 May 2018 07:40:29 +0000 (10:40 +0300)
committerPrashant D <pdhange@redhat.com>
Wed, 23 May 2018 13:25:15 +0000 (09:25 -0400)
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit 6fce4cabe7874efef780c7adce8479db8571afe7)

src/tools/rbd_mirror/ImageReplayer.cc

index e8de2fa7be7f38ac824d968b0deb9ef366b33820..28678172b1727f48d42bb62253e8056e93c8f569 100644 (file)
@@ -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;
   }
 };