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:
1cb8a9f
)
"MySQL gone" fix from lb.server.
author
František Dvořák
<valtri@civ.zcu.cz>
Thu, 16 Aug 2007 11:53:56 +0000
(11:53 +0000)
committer
František Dvořák
<valtri@civ.zcu.cz>
Thu, 16 Aug 2007 11:53:56 +0000
(11:53 +0000)
org.glite.jp.server-common/src/db.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.jp.server-common/src/db.c
b/org.glite.jp.server-common/src/db.c
index
5f1b9f4
..
3b32db2
100644
(file)
--- a/
org.glite.jp.server-common/src/db.c
+++ b/
org.glite.jp.server-common/src/db.c
@@
-111,6
+111,7
@@
static int my_isokstmt(glite_jp_db_stmt_t jpstmt, const char *source, int line,
jp_err(jpstmt->ctx, EEXIST, mysql_stmt_error(jpstmt->stmt), source, line);
return -1;
break;
+ case CR_SERVER_GONE_ERROR:
case CR_SERVER_LOST:
if (*retry > 0) {
(*retry)--;
@@
-212,6
+213,7
@@
int glite_jp_db_execstmt(glite_jp_context_t ctx,const char *txt,glite_jp_db_stmt
JP_ERR(ctx, EEXIST, mysql_error((MYSQL *) ctx->dbhandle));
return -1;
break;
+ case CR_SERVER_GONE_ERROR:
case CR_SERVER_LOST:
if (retry_nr <= 0)
do_reconnect = 1;