Fixed reconnecting to mysql server ('lost' and 'gone' handled in the same way).
authorJiří Filipovič <fila@ics.muni.cz>
Wed, 15 Aug 2007 08:46:30 +0000 (08:46 +0000)
committerJiří Filipovič <fila@ics.muni.cz>
Wed, 15 Aug 2007 08:46:30 +0000 (08:46 +0000)
org.glite.jp.primary/src/mysql.c

index 0f080ce..c74e063 100644 (file)
@@ -122,6 +122,7 @@ int glite_jp_db_execstmt(glite_jp_context_t ctx,char *txt,glite_jp_db_stmt_t *st
                                        glite_jp_stack_error(ctx,&err);
                                        return -1;
                                        break;
+                               case CR_SERVER_GONE_ERROR:
                                case CR_SERVER_LOST:
                                        if (retry_nr <= 0) 
                                                do_reconnect = 1;