git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcf1084
)
Using $GLITE_TMP for JP importer, compute default value (differs from the binary).
glite-jp-primary_branch_RC31_3
author
František Dvořák
<valtri@civ.zcu.cz>
Tue, 4 Mar 2008 20:35:31 +0000
(20:35 +0000)
committer
Františ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
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.jp.primary/src/mysql.c
b/org.glite.jp.primary/src/mysql.c
index
e7223f6
..
7337f3d
100644
(file)
--- 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;