From: Jason Stephenson Date: Sat, 6 Aug 2016 21:28:47 +0000 (-0400) Subject: Make --wait optional in eg_staged_bib_overlay. X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=commitdiff_plain;h=9d35fadc55c2eb48cf90d72229d24d7c52d3ba96;hp=e646ed5624e97e917dff2b8fc11a3bfbaf3175e3 Make --wait optional in eg_staged_bib_overlay. This commit only causes load bibs to wait if the --wait option is specified with a non-zero value. It also changes the default for the global $wait variable that the option is read into to zero. Signed-off-by: Jason Stephenson Signed-off-by: Galen Charlton --- diff --git a/eg_staged_bib_overlay b/eg_staged_bib_overlay index 836795b..7e57e9a 100755 --- a/eg_staged_bib_overlay +++ b/eg_staged_bib_overlay @@ -33,7 +33,7 @@ my $dbpw; my $dbhost; my $batch; my $cutoff; -my $wait = 1; +my $wait = 0; my $output; my $link_skipped; @@ -404,7 +404,7 @@ sub handle_load_bibs { ) }); $dbh->commit; - sleep $wait; + sleep $wait if ($wait); } }