Changeset 1207

Show
Ignore:
Timestamp:
08/16/08 21:05:02 (3 months ago)
Author:
dormando
Message:

Make inject --bigfile honor noreplwait for info files.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/utils/mogtool

    r1202 r1207  
    10591059 
    10601060        # verify info file 
    1061         print "Waiting for info file replication...\n"
    1062         while (1) { 
     1061        print "Waiting for info file replication...\n" unless $opts{noreplwait}
     1062        while (!$opts{noreplwait}) { 
    10631063            my @paths = $mogfs->get_paths("_big_info:$key", 1); 
    1064             next unless scalar(@paths) >= 2; 
     1064            if (@paths < 2) { 
     1065                select undef, undef, undef, 0.25; 
     1066                next; 
     1067            } 
    10651068            foreach my $path (@paths) { 
    10661069                my $data = get($path);