From 48041b840c18ab5f92d72a5e9f43462774c76d8d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Tue, 4 Mar 2008 20:35:31 +0000 Subject: [PATCH] Using $GLITE_TMP for JP importer, compute default value (differs from the binary). Refresh certs in JP importer. JP PS compilation fix. --- org.glite.jp.primary/src/mysql.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/org.glite.jp.primary/src/mysql.c b/org.glite.jp.primary/src/mysql.c index e7223f6..7337f3d 100644 --- a/org.glite.jp.primary/src/mysql.c +++ b/org.glite.jp.primary/src/mysql.c @@ -58,10 +58,11 @@ int glite_jp_db_connect(glite_jp_context_t ctx,char *cs) } mysql_options(ctx->dbhandle, MYSQL_READ_DEFAULT_FILE, "my"); - if (MYSQL_VERSION_ID >= 50013){ - mysql_options(ctx->dbhandle, MYSQL_OPT_RECONNECT, &reconnect); - printf("Set MYSQL_OPT_RECONNECT\n"); - } +#if MYSQL_VERSION_ID >= 50013 + /* XXX: may result in weird behaviour in the middle of transaction */ + mysql_options(ctx->dbhandle, MYSQL_OPT_RECONNECT, &reconnect); + printf("Set MYSQL_OPT_RECONNECT\n"); +#endif host = user = pw = db = NULL; -- 1.8.2.3