]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: dump formatter even for errors
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 23 May 2024 17:35:48 +0000 (13:35 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 27 Jun 2024 16:25:11 +0000 (12:25 -0400)
The admin_socker framework only dumps the formatter by default if the command
succeeds.

Fixes: a4dc88140071f9cdfe5654402067434728fee469
Fixes: https://tracker.ceph.com/issues/66184
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 55a88a0b422cef2d20e371cd68981a72d104168c)

src/mds/MDSRank.cc

index b33f0fce47e2a92d9b1cee3f55fa5dfd371c7320..168865d215f050a5a8b6631db624e5deba7b173c 100644 (file)
@@ -2675,6 +2675,7 @@ void MDSRankDispatcher::handle_asok_command(
       f->close_section();
 
       bufferlist outbl;
+      f->flush(outbl); /* even for errors, dump f */
       do_respond(rc, {}, outbl);
     }
   };