Random comments about new plan
authorGreg Sabino Mullane <greg@endpoint.com>
Fri, 2 May 2014 22:07:35 +0000 (18:07 -0400)
committerGreg Sabino Mullane <greg@endpoint.com>
Fri, 2 May 2014 22:07:35 +0000 (18:07 -0400)
Bucardo.pm

index 731870605d4e13d942110a286d25897b8ef85ebf..aa834ac333e9a257f84abf77e219105fdde3d0fc 100644 (file)
@@ -593,6 +593,18 @@ sub start_mcp {
         my $line = (caller)[2];
         $self->glog("Warning: Killed (line $line): $msg", LOG_WARN);
 
+        ## If this is a dead database, we may want to carry on if there are other
+        ## syncs that are not using this database.
+        ## if (dead_db) {
+        ##   mark_as_dead
+        ##   disable all syncs using this database, marking as stalled
+        ##   return if there are still syns left
+        ## }
+        ## back in main loop:
+        ##   try reconnecting to dead databases periodically
+        ##   if its back, see if we have all dbs needed for each stalled sync
+        ##   if so, mark the sync as active, fire it up
+
         ## The error message determines if we try to resurrect ourselves or not
         my $respawn = (
                        $msg =~  /DBI connect/         ## From DBI