From: František Dvořák Date: Fri, 30 Mar 2007 14:17:28 +0000 (+0000) Subject: Don't give up with not working transactions. X-Git-Tag: glite-lb-logger_R_1_4_2_1~3 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=98e1913de339c7603a371f2e6e511252489d6a19;p=jra1mw.git Don't give up with not working transactions. --- diff --git a/org.glite.lb.server/src/lbs_db.c b/org.glite.lb.server/src/lbs_db.c index 80b6b33..01ae1df 100644 --- a/org.glite.lb.server/src/lbs_db.c +++ b/org.glite.lb.server/src/lbs_db.c @@ -93,7 +93,10 @@ static int transaction_test(edg_wll_Context ctx, MYSQL *m2) { m1 = (MYSQL *)ctx->mysql; edg_wll_ExecStmt(ctx, cmd_drop, NULL); - if (edg_wll_ExecStmt(ctx, cmd_create, NULL) != 0) goto err1; + if (edg_wll_ExecStmt(ctx, cmd_create, NULL) != 0) { + edg_wll_ResetError(ctx); + goto err1; + } if (edg_wll_Transaction(ctx) != 0) goto err2; if (edg_wll_ExecStmt(ctx, cmd_insert, NULL) != 1) goto err2;