[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 15/29] Plan reporting: Break out return-plan-to-client
We are going to want to reuse this. No functional change. Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- ms-queuedaemon | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ms-queuedaemon b/ms-queuedaemon index d48715e..8c9af81 100755 --- a/ms-queuedaemon +++ b/ms-queuedaemon @@ -355,11 +355,16 @@ proc cmd/thought-done {chan desc} { puts-chan $chan "OK thought" } +proc return-plan-to-client {chan wf} { + set tplan [exec -keepnewline ./ms-planner -w$wf get-plan < /dev/null] + puts-chan-data $chan "OK get-plan" $tplan + return $tplan +} + proc cmd/get-plan {chan desc} { global plan set w [check-we-are-thinking $chan] - set plan [exec -keepnewline ./ms-planner -w$w get-plan < /dev/null] - puts-chan-data $chan "OK get-plan" $plan + set plan [return-plan-to-client $chan $w] } proc cmd/book-resources {chan desc bytes} { -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |