Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
6fc591a6
Commit
6fc591a6
authored
Mar 27, 2009
by
Leigh B. Stoller
Browse files
Another fix for mailing DB errors.
parent
2d6f1462
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/emdbi.pm.in
View file @
6fc591a6
...
...
@@ -18,9 +18,6 @@ my $TB = "@prefix@";
my
$
SCRIPTNAME
=
"Unknown"
;
my
$
TBOPS
=
"@TBOPSEMAIL@"
;
#
Locals
my
$
DBErrorString
=
""
;
#
Record
last
DB
error
string
.
#
Remember
the
DBname
for
subsequent
reconnects
.
my
@
DBNAMES
=
();
...
...
@@ -81,14 +78,15 @@ else {
#
my @DB;
use vars qw($DBQUERY_MAXTRIES $DBCONN_MAXTRIES
use vars qw($DBQUERY_MAXTRIES $DBCONN_MAXTRIES
$DBErrorString
$DBCONN_EXITONERR $DBQUERY_RECONNECT $DBQUERY_DEBUG);
$DBQUERY_MAXTRIES = 1;
$DBQUERY_RECONNECT = 1;
$DBCONN_MAXTRIES = 5;
$DBCONN_EXITONERR = 1;
$DBQUERY_DEBUG = 0;
@EXPORT = qw($DBQUERY_MAXTRIES $DBQUERY_RECONNECT
$DBErrorString = "";
@EXPORT = qw($DBQUERY_MAXTRIES $DBQUERY_RECONNECT $DBErrorString
$DBCONN_EXITONERR $DBCONN_MAXTRIES $DBQUERY_DEBUG);
sub TBDBConnect($$)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment