[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 28/33] tcl daemons: if error occurs, ensure db is closed afterwards
When an error occurs which we are not handling, we want to unconditionally close the db connection. The next transaction will reopen it. Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> --- tcl/JobDB-Executive.tcl | 1 + 1 file changed, 1 insertion(+) diff --git a/tcl/JobDB-Executive.tcl b/tcl/JobDB-Executive.tcl index fe1c946..c0cd4e9 100644 --- a/tcl/JobDB-Executive.tcl +++ b/tcl/JobDB-Executive.tcl @@ -333,6 +333,7 @@ proc transaction {tables script} { continue } } + catch { db-ensure-closed } } return -code $rc -errorinfo $ei -errorcode $ec $result } -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |