git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37d2f0c
)
Don't give up with not working transactions.
author
František Dvořák
<valtri@civ.zcu.cz>
Fri, 30 Mar 2007 14:17:28 +0000
(14:17 +0000)
committer
František Dvořák
<valtri@civ.zcu.cz>
Fri, 30 Mar 2007 14:17:28 +0000
(14:17 +0000)
org.glite.lb.server/src/lbs_db.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/src/lbs_db.c
b/org.glite.lb.server/src/lbs_db.c
index
80b6b33
..
01ae1df
100644
(file)
--- 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;