summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-08-11 14:02:46 -0700
committerSage Weil <sage@inktank.com>2013-08-13 17:28:54 -0700
commitd1a81654507805663536d78e3f3d2ed0cf2f708b (patch)
tree15f44b50a6bb9a2e59162ec8f13c8f931b458b68
parent0c23633762f0a9361b8b9ee22619a00221745439 (diff)
downloadceph-d1a81654507805663536d78e3f3d2ed0cf2f708b.tar.gz
client: add enclosing object for asok dumps
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/client/Client.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/Client.cc b/src/client/Client.cc
index 4b10cf5c1ba..7e26a43c1c5 100644
--- a/src/client/Client.cc
+++ b/src/client/Client.cc
@@ -107,6 +107,7 @@ bool Client::CommandHook::call(std::string command, cmdmap_t& cmdmap,
{
stringstream ss;
Formatter *f = new_formatter(format);
+ f->open_object_section("result");
m_client->client_lock.Lock();
if (command == "mds_requests")
m_client->dump_mds_requests(f);
@@ -117,6 +118,7 @@ bool Client::CommandHook::call(std::string command, cmdmap_t& cmdmap,
else
assert(0 == "bad command registered");
m_client->client_lock.Unlock();
+ f->close_section();
f->flush(out);
delete f;
return true;