try to reconnect to the DB if rebuildLineage.pl takes a long time

This commit is contained in:
Doug Bell 2011-03-21 21:04:52 -05:00
parent b13064b912
commit 906fa4aa97
2 changed files with 3 additions and 0 deletions

View file

@ -11,6 +11,7 @@
- Change Group INSERT to REPLACE to prevent merge problems in multi-master DB clusters
- added #12078: Add alt tag to default Image template
- fixed #12077: Carousel update not possible
- Try to reconnect to MySQL if sbin/rebuildLineage.pl takes too long
7.10.11
- fixed #12057: WebGUI::Search, assetIds search clause

View file

@ -42,6 +42,8 @@ pod2usage() unless (defined($configFile) && $configFile ne '');
print "Starting..." unless ($quiet);
my $session = WebGUI::Session->open($webguiRoot,$configFile);
# We might take a while, reconnect if we get disconnected for inactivity
$session->db->dbh->{mysql_auto_reconnect} = 1;
print "OK\n" unless ($quiet);
print "Looking for descendant replationships...\n" unless ($quiet);