File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -300,7 +300,13 @@ module Wrapper = functor(Impl: Server_impl) -> struct
300300 Impl.VDI. deactivate context ~task ~dp ~sr ~vdi , vdi_t
301301 | Vdi_automaton. Detach ->
302302 Impl.VDI. detach context ~task ~dp ~sr ~vdi , vdi_t
303- with e ->
303+ with
304+ | Db_exn. DBCache_NotFound (err , cls , _ref ) when (err= " missing row" && cls= " VDI" && (op= Vdi_automaton. Deactivate || op= Vdi_automaton. Detach )) ->
305+ error " Caught Db_exn.DBCache_NotFound (missing VDI) while deactivating or detaching" ;
306+ error " There's nothing I can really do now. I'm going to pretend it worked and hope for the best." ;
307+ Success Unit , vdi_t
308+
309+ | e ->
304310 error " dp:%s sr:%s vdi:%s op:%s error:%s backtrace:%s" dp sr vdi
305311 (Vdi_automaton. string_of_op op) (Printexc. to_string e) (Printexc. get_backtrace () );
306312 Failure (Internal_error (Printexc. to_string e)), vdi_t in
You can’t perform that action at this time.
0 commit comments