From 1b641d84adde173c34f460257fa346a6bfbe6ceb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Wed, 27 Feb 2008 11:47:42 +0000 Subject: [PATCH] Transaction support test fix. --- org.glite.lbjp-common.db/src/db.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/org.glite.lbjp-common.db/src/db.c b/org.glite.lbjp-common.db/src/db.c index 455740d..188e6a9 100644 --- a/org.glite.lbjp-common.db/src/db.c +++ b/org.glite.lbjp-common.db/src/db.c @@ -535,7 +535,7 @@ int glite_lbu_ExecSQL(glite_lbu_DBContext ctx, const char *cmd, glite_lbu_Statem sum.tv_usec += end.tv_usec; sum.tv_sec += end.tv_sec + sum.tv_usec / 1000000; sum.tv_usec -= 1000000 * (sum.tv_usec / 1000000); - fprintf(stderr,"[%d] %s\n[%d] %3ld.%06ld (sum: %3ld.%06ld)\n",pid,txt,pid,end.tv_sec,end.tv_usec,sum.tv_sec,sum.tv_usec); + fprintf(stderr,"[%d] %s\n[%d] %3ld.%06ld (sum: %3ld.%06ld)\n",pid,cmd,pid,end.tv_sec,end.tv_usec,sum.tv_sec,sum.tv_usec); #endif return db_handle.mysql_affected_rows(ctx->mysql); @@ -1035,8 +1035,6 @@ static int transaction_test(glite_lbu_DBContext ctx) { goto quit; } - if (glite_lbu_ExecSQL(ctx, "SET TRANSACTION ISOLATION LEVEL REPEATABLE READ", NULL) <= 0) goto quit; - if (strstr(res[1],"ENGINE=InnoDB")) ctx->caps |= GLITE_LBU_DB_CAP_TRANSACTIONS; -- 1.8.2.3