Changeset 1328

Show
Ignore:
Timestamp:
10/18/09 08:12:30 (6 weeks ago)
Author:
dormando
Message:

Cut the queue fetch limit by half.

Since this isn't tunable yet... and folks with slow databases report
deadlocks?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/server/lib/MogileFS/Worker/JobMaster.pm

    r1275 r1328  
    152152    my ($depth, $limit) = @_; 
    153153    if ($depth == 0) { 
    154         $limit += 50 unless $limit >= 1000; 
     154        $limit += 50 unless $limit >= 500; 
    155155        return (1, $limit); 
    156156    } elsif ($depth / $limit < 0.70) {