Using $GLITE_TMP for JP importer, compute default value (differs from the binary). glite-jp-primary_branch_RC31_3
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 4 Mar 2008 20:35:31 +0000 (20:35 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 4 Mar 2008 20:35:31 +0000 (20:35 +0000)
Refresh certs in JP importer.
JP PS compilation fix.

org.glite.jp.primary/src/mysql.c

index e7223f6..7337f3d 100644 (file)
@@ -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;