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:
a83e745
)
UnlockJob if StoreEvent fail
author
Jan Pospíšil
<honik@ntc.zcu.cz>
Thu, 14 Jun 2007 14:04:01 +0000
(14:04 +0000)
committer
Jan Pospíšil
<honik@ntc.zcu.cz>
Thu, 14 Jun 2007 14:04:01 +0000
(14:04 +0000)
org.glite.lb.server/src/db_store.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/src/db_store.c
b/org.glite.lb.server/src/db_store.c
index
4513638
..
6bf1842
100644
(file)
--- a/
org.glite.lb.server/src/db_store.c
+++ b/
org.glite.lb.server/src/db_store.c
@@
-73,8
+73,10
@@
db_store(edg_wll_Context ctx,char *ucs, char *event)
if(use_db) {
if (ctx->strict_locking && edg_wll_LockJob(ctx,ev->any.jobId)) goto err;
- if(edg_wll_StoreEvent(ctx, ev,&seq))
- goto err;
+ if(edg_wll_StoreEvent(ctx, ev,&seq)) {
+ edg_wll_UnlockJob(ctx,ev->any.jobId);
+ goto err;
+ }
}
if (!ctx->strict_locking && edg_wll_LockJob(ctx,ev->any.jobId)) goto err;