albatrossd: acquire lock for restore

This commit is contained in:
Hannes Mehnert 2019-11-11 22:11:22 +01:00
parent 784429744c
commit ff067255b0
1 changed files with 2 additions and 1 deletions

View File

@ -177,7 +177,8 @@ let jump _ influx =
in
Lwt_list.iter_s (fun (name, config) ->
create stat_out log_out cons_out stub_data_out name config)
Lwt_mutex.with_lock create_lock (fun () ->
create stat_out log_out cons_out stub_data_out name config))
(Vmm_trie.all old_unikernels) >>= fun () ->
Lwt.catch (fun () ->