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:
e7fc9e8
)
test for ability of transactions
author
Miloš Mulač
<mulac@civ.zcu.cz>
Thu, 6 Mar 2008 12:01:05 +0000
(12:01 +0000)
committer
Miloš Mulač
<mulac@civ.zcu.cz>
Thu, 6 Mar 2008 12:01:05 +0000
(12:01 +0000)
set DB capabilities correctly
org.glite.lb.server/src/bkindex.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/src/bkindex.c
b/org.glite.lb.server/src/bkindex.c
index
578900f
..
bf1b621
100644
(file)
--- a/
org.glite.lb.server/src/bkindex.c
+++ b/
org.glite.lb.server/src/bkindex.c
@@
-102,6
+102,12
@@
int main(int argc,char **argv)
edg_wll_SetError(ctx, EDG_WLL_ERROR_DB_CALL, "index capability not available");
do_exit(ctx, EX_SOFTWARE);
}
+ if (!(ctx->dbcaps & GLITE_LBU_DB_CAP_TRANSACTIONS)) {
+ edg_wll_SetError(ctx, EDG_WLL_ERROR_DB_CALL, "transactions capability not available");
+ do_exit(ctx, EX_SOFTWARE);
+ }
+ glite_lbu_DBSetCaps(ctx->dbctx, ctx->dbcaps);
+
if (edg_wll_QueryJobIndices(ctx,&old_indices,&index_names)) do_exit(ctx,EX_SOFTWARE);
if (dump) {