Signed-off-by: Sage Weil <sage@redhat.com>
{
int r = 0;
std::stringstream ss;
- std::stringstream ds;
bufferlist odata;
std::string prefix;
}
#endif
f.close_section(); // command_descriptions
-
- f.flush(ds);
goto out;
} else {
// Let's find you a handler!
// with a ms_dispatch, so that the python part can block if it
// wants to.
dout(4) << "passing through " << cmdmap.size() << dendl;
+ stringstream ds;
r = handler->handle_command(cmdmap, &ds, &ss);
+ odata.append(ds);
goto out;
}
std::string rs;
rs = ss.str();
- odata.append(ds);
dout(1) << "do_command r=" << r << " " << rs << dendl;
if (con) {
MCommandReply *reply = new MCommandReply(r, rs);