From: Zdeněk Salvet Date: Fri, 13 Jul 2007 08:51:01 +0000 (+0000) Subject: Don't allow forcing transactions on if they are not supported by DB schema. X-Git-Tag: glite-lb-build_R_1_6_0_1~31 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=65cc018527fdd8a3372c3680e832d0ae9ab1a8cb;p=jra1mw.git Don't allow forcing transactions on if they are not supported by DB schema. --- diff --git a/org.glite.lb.server/src/bkserverd.c b/org.glite.lb.server/src/bkserverd.c index 0840a9e..10cc346 100644 --- a/org.glite.lb.server/src/bkserverd.c +++ b/org.glite.lb.server/src/bkserverd.c @@ -581,6 +581,7 @@ a.sin_addr.s_addr = INADDR_ANY; edg_wll_InitContext(&ctx); wait_for_open(ctx, dbstring); + ctx->use_transactions = transactions; if (edg_wll_DBCheckVersion(ctx, dbstring)) { char *et,*ed; @@ -594,10 +595,6 @@ a.sin_addr.s_addr = INADDR_ANY; if (!ctx->use_transactions && transactions != 0) { fprintf(stderr, "[%d]: transactions aren't supported!\n", getpid()); } - if (transactions >= 0) { - fprintf(stderr, "[%d]: transactions forced from %d to %d\n", getpid(), ctx->use_transactions, transactions); - ctx->use_transactions = transactions; - } use_transactions = ctx->use_transactions; edg_wll_Close(ctx); edg_wll_FreeContext(ctx);