]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-mirror: make 'flush' asok command asynchronous 22027/head
authorMykola Golub <mgolub@suse.com>
Wed, 16 May 2018 07:40:29 +0000 (10:40 +0300)
committerMykola Golub <mgolub@suse.com>
Wed, 16 May 2018 11:31:52 +0000 (14:31 +0300)
Signed-off-by: Mykola Golub <mgolub@suse.com>
src/tools/rbd_mirror/ImageReplayer.cc

index 367fbb90c884bd0e3d22ed0d6aa48e617b1a1748..f8209603f013e347e7e0620055b9bc0937d0eebc 100644 (file)
@@ -150,13 +150,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;
   }
 };