]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-mirror: fix 'rbd mirror status' asok command output 32714/head
authorMykola Golub <mgolub@suse.com>
Mon, 30 Dec 2019 15:44:32 +0000 (17:44 +0200)
committerNathan Cutler <ncutler@suse.com>
Sat, 18 Jan 2020 09:57:46 +0000 (10:57 +0100)
This was broken by def50d04796, and implicitly fixed during
refactoring in the master (octopus) by adf1486e46c, hence it is a
direct commit to nautilus branch.

Fixes: https://tracker.ceph.com/issues/43429
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit 0a0fcc7da4573e8b3c82440226747a2cc377496b)

src/tools/rbd_mirror/Mirror.cc

index bc8de0103e84970cd00e0305b97348a5c07b0eec..0d1557d29b30b4ef0687526d023be7ab5008ca5b 100644 (file)
@@ -292,6 +292,8 @@ void Mirror::print_status(Formatter *f, stringstream *ss)
 
   if (f) {
     f->close_section();
+    f->close_section();
+    f->flush(*ss);
   }
 }