[padb] r422 committed - Use the -f option to pdsh rather than the FANOUT variable.

padb at googlecode.com padb at googlecode.com
Fri Dec 3 18:05:35 GMT 2010


Revision: 422
Author: apittman at gmail.com
Date: Fri Dec  3 10:04:09 2010
Log: Use the -f option to pdsh rather than the FANOUT variable.

http://code.google.com/p/padb/source/detail?r=422

Modified:
  /trunk/src/padb

=======================================
--- /trunk/src/padb	Fri Dec  3 10:00:39 2010
+++ /trunk/src/padb	Fri Dec  3 10:04:09 2010
@@ -3777,17 +3777,14 @@
              next unless ($have_pdsh);
              next if ( @hosts == 0 );

+            my $fanout = @hosts + 5;
+
              $pcmd{require_inner_callback} = 1;
              my $hlist = join q{,}, @hosts;
-            $pcmd{command} = "pdsh -w $hlist";
-
-            if ( @hosts > 20 ) {
-                my $fanout = @hosts + 5;
-                $ENV{FANOUT} = $fanout;
-
-                if ( @hosts > 128 ) {
-                    print "Pdsh backend not recommended for such large  
jobs\n";
-                }
+            $pcmd{command} = "pdsh -f $fanout -w $hlist";
+
+            if ( @hosts > 128 ) {
+                print "Pdsh backend not recommended for such large jobs\n";
              }

              return %pcmd;




More information about the padb-devel mailing list