Daniel P. Berrange 8aca141081 rpc: refactor virNetServer setup for post-exec restarts
With the current code it is neccessary to call

  virNetDaemonNewPostExecRestart()

and then for each server that needs restarting you are supposed
to call

  virNetDaemonAddSeverPostExecRestart()

This is fine if there's only ever one server, but as soon as you
have two servers it is impossible to use this design. The code
has no idea which servers were recorded in the JSON state doc,
nor in which order the hash table serialized its keys.

So this patch changes things so that we only call

  virNetDaemonNewPostExecRestart()

passing in a callback, which is invoked once for each server
found int he JSON state doc.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2018-01-31 15:17:14 +00:00
..
2017-11-20 13:22:48 +01:00
2018-01-18 15:04:18 +01:00
2018-01-11 14:23:09 +01:00
2017-11-20 13:22:48 +01:00
2017-04-27 14:13:19 +02:00
2017-04-11 13:23:01 +02:00
2018-01-25 17:16:08 +01:00
2016-12-06 13:34:00 +01:00
2017-11-03 13:24:12 +01:00
2016-05-02 07:18:25 +02:00
2017-07-26 15:35:02 +02:00
2016-06-14 08:25:25 +02:00
2017-11-03 13:24:12 +01:00
2017-11-22 11:27:40 +01:00
2017-07-26 15:33:45 +02:00
2017-04-27 14:13:19 +02:00
2017-11-24 11:47:26 -05:00
2017-11-03 13:24:12 +01:00
2018-01-25 17:16:08 +01:00
2016-09-14 13:18:07 +02:00
2016-08-24 17:43:29 +02:00
2016-05-02 07:18:25 +02:00
2017-10-05 09:09:50 +02:00