diff options
author | Sage Weil <sage@inktank.com> | 2013-08-11 14:02:46 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-08-11 14:02:46 -0700 |
commit | f41f8b472ec74d5d749b34c7a733bbd7eba27362 (patch) | |
tree | 0c79e3caea810a087601b5c877e4636cbd400169 | |
parent | b221a42ef78896a2c1f4dbc749a55c7a89ce0d06 (diff) | |
download | ceph-f41f8b472ec74d5d749b34c7a733bbd7eba27362.tar.gz |
client: add enclosing object for asok dumps
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r-- | src/client/Client.cc | 2 |
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; |