Commit 561eddfe authored by Mike Hibler's avatar Mike Hibler
Browse files

Don't even try to run portstats if it doesn't exist.

parent 8cc67efe
...@@ -45,6 +45,7 @@ my $piper = "$TBROOT/sbin/locpiper"; ...@@ -45,6 +45,7 @@ my $piper = "$TBROOT/sbin/locpiper";
my $mapper = "$TBROOT/bin/mapper"; my $mapper = "$TBROOT/bin/mapper";
my $wrapper = "$TBROOT/libexec/assign_wrapper"; my $wrapper = "$TBROOT/libexec/assign_wrapper";
my $SNMPIT = "$TBROOT/bin/snmpit"; my $SNMPIT = "$TBROOT/bin/snmpit";
my $portstats = "$TBROOT/bin/portstats";
my $NFSTRACESUPPORT= @NFSTRACESUPPORT@; my $NFSTRACESUPPORT= @NFSTRACESUPPORT@;
my $PGENISUPPORT = @PROTOGENI_SUPPORT@; my $PGENISUPPORT = @PROTOGENI_SUPPORT@;
...@@ -1492,10 +1493,10 @@ sub doSwapin($) { ...@@ -1492,10 +1493,10 @@ sub doSwapin($) {
# Don't clear port counters on MODIFY. # Don't clear port counters on MODIFY.
# (XXX should clear new nodes' port counters.) # (XXX should clear new nodes' port counters.)
if ($type >= RETRY) { if ($type >= RETRY && -x $portstats) {
print "Clearing port counters.\n"; print "Clearing port counters.\n";
TBDebugTimeStamp("portstats started"); TBDebugTimeStamp("portstats started");
if (system("portstats $stackarg -z -a -q $pid $eid")) { if (system("$portstats $stackarg -z -a -q $pid $eid")) {
tbwarn "Failed to clear port counters."; tbwarn "Failed to clear port counters.";
# #
# This is a non-fatal error. # This is a non-fatal error.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment