]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-mirror: fix 'rbd mirror status' asok command output 32447/head
authorMykola Golub <mgolub@suse.com>
Mon, 30 Dec 2019 15:44:32 +0000 (17:44 +0200)
committerJason Dillaman <dillaman@redhat.com>
Thu, 9 Jan 2020 17:32:23 +0000 (12:32 -0500)
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>
src/tools/rbd_mirror/Mirror.cc

index 144386cb47a7be706cc6aad2bb60bd7812efaef3..d3d278e7fa4c95c05dfdb24254d6a7ea457aa79d 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);
   }
 }