Skip to content

Commit

Permalink
Fix squeezed following semantic change in xs api
Browse files Browse the repository at this point in the history
Turns out the old xenstore client would silently ignore Xb.Noent
exceptions raised by 'rm', but the new xenstore client doesn't.

Not entirely sure whether this should be changed in the new
xenstore client - it's likely to lead to some regressions if
we're not very careful.

Signed-off-by: Jon Ludlam <[email protected]>
  • Loading branch information
Jon Ludlam committed Apr 5, 2013
1 parent 067fba2 commit ea71271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/memory_server.ml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ let login _ dbg service_name =
(* remove any existing reservations associated with this service *)
Xenctrl.with_intf
(fun xc ->
Client.with_xs client (fun xs -> Client.rm xs (state_path _service ^ "/" ^ service_name))
try Client.with_xs client (fun xs -> Client.rm xs (state_path _service ^ "/" ^ service_name)) with Xs_protocol.Enoent _ -> ()
);
service_name
)
Expand Down

0 comments on commit ea71271

Please sign in to comment.