]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: improve handle_command
authorJohn Spray <john.spray@redhat.com>
Sun, 5 Mar 2017 15:38:36 +0000 (10:38 -0500)
committerKefu Chai <kchai@redhat.com>
Sun, 30 Apr 2017 02:21:30 +0000 (10:21 +0800)
commit9988a564d816f8fb3768a382dd547519d8112f94
tree52588b2503b4385d25f37c1dbbaa08e47023c0fc
parentf68ad16e86f5abaedc9261aa09250d75fe372e31
mgr: improve handle_command

Run the python module calls in a finisher so that
they don't block the daemonserver lock and so that
they can call back into mgr stuff if they need to.

Fix passing through commands to python modules, this
was giving EINVAL because only things with a MgrCommand
were getting let in.

Also fix get_command_descriptions, which was not
including the output of the formatter in the response.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mgr/DaemonServer.cc
src/mgr/DaemonServer.h
src/mgr/Mgr.cc