daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest May 24th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Index: lib/MT/Upgrade/v4.pm
  2. ===================================================================
  3. --- lib/MT/Upgrade/v4.pm    (revision 3104)
  4. +++ lib/MT/Upgrade/v4.pm    (working copy)
  5. @@ -1153,7 +1153,7 @@
  6.      my $continue = 0;
  7.      my $driver = $class->driver;
  8.  
  9. -    my $iter = $class->load_iter({ class => '*' }, { offset => $offset, limit => $MAX_ROWS+1 });
  10. +    my $iter = $class->load_iter({ class => '*' }, { offset => $offset, limit => $self->max_rows+1 });
  11.      my $start = time;
  12.      my ( %touched, %c, %tb );
  13.      my $rows = 0;
  14. @@ -1163,7 +1163,7 @@
  15.          if (my $tb = $e->trackback) {
  16.              $tb{$tb->id} = $e;
  17.          }
  18. -        $continue = 1, last if scalar $rows == $MAX_ROWS;
  19. +        $continue = 1, last if scalar $rows == $self->max_rows;
  20.      }
  21.      if ( $continue ) {
  22.          $iter->end;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top