Changeset 36885


Ignore:
Timestamp:
2022-11-07T12:11:13+13:00 (3 weeks ago)
Author:
kjdon
Message:

need to make sure maxdocs is not -1 (ie process all docs) before checking whether we have processed more than that number

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/SplitTextFile.pm

    r36379 r36885  
    251251    foreach $segtext (@$segments) {
    252252        $segment++;
    253 
    254253    if (defined $self->{'metapass_srcdoc'}->{$file}->{$segment}) {
    255254        # metadata is attached to a srcdoc
     
    321320    $self->{'num_processed'} ++;
    322321
    323     if ($self->{'num_processed'} >= $maxdocs) {
     322    if ($maxdocs != -1 && $self->{'num_processed'} >= $maxdocs) {
    324323        last;
    325324    }
Note: See TracChangeset for help on using the changeset viewer.