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-02-11 06:51:28 +04:00
2017-08-06 09:24:26 +04:00
2017-08-06 09:24:26 +04:00
2017-04-11 14:06:47 +02:00
2017-11-20 13:22:48 +01:00
2018-01-18 15:04:18 +01:00
2018-01-25 15:30:32 +01:00
2017-04-11 14:06:47 +02:00
2017-11-07 14:58:04 +01:00
2017-11-07 14:58:04 +01:00
2017-01-18 06:31:54 -05:00
2018-01-25 17:16:08 +01:00
2017-12-05 14:52:49 +01:00
2017-12-08 14:04:57 -07:00
2017-07-11 10:41:24 +02:00
2017-03-21 11:25:59 -04:00
2017-03-21 11:25:59 -04:00
2017-03-21 11:25:59 -04:00
2017-09-18 08:32:24 -04:00
2016-12-06 13:34:00 +01:00
2017-12-07 09:21:04 +00:00
2017-12-07 09:21:04 +00:00
2017-12-05 14:52:49 +01:00
2017-12-05 14:52:49 +01:00
2018-01-05 17:00:58 +01:00
2017-11-30 16:49:05 +01:00
2017-10-27 14:43:21 +02:00
2017-12-06 19:50:21 -05:00
2017-07-15 14:50:42 +02:00
2017-08-03 09:54:36 +02:00
2018-01-29 09:08:38 +01:00
2018-01-29 09:08:38 +01:00
2017-10-17 06:19:18 +02:00
2017-03-29 10:36:55 +02:00
2017-03-29 10:36:55 +02:00
2017-03-08 13:22:33 -05:00
2017-03-08 13:22:33 -05:00
2017-03-08 13:22:33 -05:00
2018-01-12 09:24:14 -05:00
2018-01-25 17:16:08 +01:00
2017-07-13 09:37:52 +02:00
2017-10-16 10:22:34 +01:00
2017-07-26 15:33:45 +02:00
2018-01-11 14:23:09 +01:00
2017-07-11 14:24:17 +02:00
2017-08-03 09:54:36 +02:00
2018-01-04 06:55:31 -05:00
2018-01-25 17:16:08 +01:00
2017-04-04 16:36:15 +02:00
2017-12-08 14:04:57 -07:00
2017-11-30 10:20:45 +00:00
2017-02-14 10:54:29 +01:00
2017-10-04 17:10:12 +02:00
2017-11-03 13:24:12 +01:00
2017-10-04 17:10:12 +02:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-09-19 16:04:53 +02:00
2017-09-21 08:55:07 +01:00
2017-11-20 13:22:48 +01:00
2018-01-17 17:07:02 +01:00
2017-12-12 16:41:25 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-04-27 14:13:19 +02:00
2017-04-11 13:23:01 +02:00
2017-04-28 14:17:10 +02:00
2018-01-25 17:16:08 +01:00
2017-11-03 13:24:12 +01:00
2017-12-08 14:04:57 -07:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2018-01-25 17:16:08 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2016-12-06 13:33:18 +01:00
2016-12-06 13:34:00 +01:00
2017-11-03 13:24:12 +01:00
2017-04-19 10:51:51 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-09-20 11:52:56 +02:00
2017-09-19 16:04:53 +02:00
2017-11-03 13:24:12 +01:00
2017-12-05 14:52:49 +01:00
2017-12-05 14:52:49 +01:00
2017-12-14 10:24:36 +01:00
2018-01-04 16:52:03 +01:00
2017-11-03 13:24:12 +01:00
2018-01-22 14:11:58 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-07-26 15:35:24 +02:00
2017-11-28 15:51:33 +01:00
2017-11-03 13:24:12 +01:00
2017-08-10 11:22:06 +02:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-04-10 14:49:20 +02:00
2017-01-18 10:04:11 +01:00
2017-01-20 15:42:12 +01:00
2018-01-20 22:01:24 -05:00
2018-01-20 22:01:24 -05:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-24 08:08:36 -05:00
2017-11-03 13:24:12 +01:00
2018-01-12 09:24:14 -05:00
2017-05-15 12:34:19 +02:00
2017-11-18 10:45:10 +01:00
2017-11-03 13:24:12 +01:00
2017-07-26 15:35:02 +02:00
2018-01-04 16:52:03 +01:00
2017-07-26 15:36:21 +02:00
2017-07-26 15:35:02 +02:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-11-03 13:24:12 +01:00
2017-11-18 10:45:10 +01:00
2017-11-03 13:24:12 +01:00
2017-11-22 11:27:40 +01:00
2017-11-14 14:45:19 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-09 08:04:26 -07:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-08-03 09:54:36 +02:00
2017-11-03 13:24:12 +01:00
2017-04-04 17:30:03 +02:00
2017-07-26 15:33:45 +02:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-05-09 13:12:40 +02:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-04-27 14:13:19 +02:00
2018-01-10 17:34:37 -05:00
2017-11-24 11:47:26 -05:00
2017-04-04 17:30:03 +02:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-12-12 16:34:12 +00:00
2017-04-04 17:30:03 +02:00
2017-11-03 13:24:12 +01:00
2017-04-04 17:30:03 +02:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-12 19:39:57 -07:00
2018-01-31 15:17:14 +00:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-04-04 17:30:03 +02:00
2018-01-04 06:55:31 -05:00
2017-08-30 10:50:17 +02:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-05-09 13:12:40 +02:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-02-19 06:45:09 -05:00
2018-01-25 17:16:08 +01:00
2017-04-04 17:30:03 +02:00
2017-11-30 10:20:06 +00:00
2017-11-03 13:24:12 +01:00
2017-04-11 14:06:47 +02:00
2017-04-13 10:14:42 +02:00
2017-11-03 13:24:12 +01:00
2018-01-31 12:22:25 +01:00
2017-11-03 13:24:12 +01:00
2018-01-04 09:29:49 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-04-04 17:30:03 +02:00
2017-11-03 13:24:12 +01:00
2017-10-05 09:09:50 +02:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-04-04 17:30:03 +02:00
2017-12-08 14:04:57 -07:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00