Sometimes MySQL server is lost, sometimes it is gone.
authorAleš Křenek <ljocha@ics.muni.cz>
Wed, 15 Aug 2007 08:34:44 +0000 (08:34 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Wed, 15 Aug 2007 08:34:44 +0000 (08:34 +0000)
Handle both cases in the same way (try reconnecting).

org.glite.lb.server/src/lbs_db.c

index 5f1efa0..7baaee1 100644 (file)
@@ -157,6 +157,7 @@ putc(10,stderr);
                                        edg_wll_SetError(ctx,EEXIST,mysql_error((MYSQL *) ctx->mysql));
                                        return -1;
                                        break;
+                               case CR_SERVER_GONE_ERROR:
                                case CR_SERVER_LOST:
                                        if (retry_nr <= 0) 
                                                do_reconnect = 1;