From 9d35fadc55c2eb48cf90d72229d24d7c52d3ba96 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Sat, 6 Aug 2016 17:28:47 -0400 Subject: [PATCH 1/1] 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 --- eg_staged_bib_overlay | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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); } } -- 1.7.2.5