From: František Dvořák Date: Tue, 4 Mar 2008 20:35:31 +0000 (+0000) Subject: Using $GLITE_TMP for JP importer, compute default value (differs from the binary). X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=48041b840c18ab5f92d72a5e9f43462774c76d8d;p=jra1mw.git Using $GLITE_TMP for JP importer, compute default value (differs from the binary). Refresh certs in JP importer. JP PS compilation fix. --- 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;