/[webpac2]/trunk/run.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/run.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 768 by dpavlin, Fri Nov 3 19:41:28 2006 UTC revision 769 by dpavlin, Fri Nov 3 20:21:09 2006 UTC
# Line 153  $validate = new WebPAC::Validate( Line 153  $validate = new WebPAC::Validate(
153    
154    
155  my $use_indexer = $config->use_indexer;  my $use_indexer = $config->use_indexer;
156    $stats ||= $validate;
157  if ($stats) {  if ($stats) {
158          $log->debug("option --stats disables update of indexing engine...");          $log->debug("disabled indexing for stats collection");
159          $use_indexer = undef;          $use_indexer = undef;
160  } else {  } else {
161          $log->info("using $use_indexer indexing engine...");          $log->info("using $use_indexer indexing engine...");
# Line 467  while (my ($database, $db_config) = each Line 468  while (my ($database, $db_config) = each
468    
469                          my $row = $input_db->fetch || next;                          my $row = $input_db->fetch || next;
470    
471                            $total_rows++;
472    
473                          my $mfn = $row->{'000'}->[0];                          my $mfn = $row->{'000'}->[0];
474    
475                          if (! $mfn || $mfn !~ m#^\d+$#) {                          if (! $mfn || $mfn !~ m#^\d+$#) {
# Line 482  while (my ($database, $db_config) = each Line 485  while (my ($database, $db_config) = each
485                                                  $validate->report_error( $errors )                                                  $validate->report_error( $errors )
486                                          );                                          );
487                                  }                                  }
488                                    next;   # validation doesn't create any output
489                          }                          }
490    
491                          my $ds = WebPAC::Normalize::data_structure(                          my $ds = WebPAC::Normalize::data_structure(
# Line 530  while (my ($database, $db_config) = each Line 534  while (my ($database, $db_config) = each
534    
535                                  $log->info("Created $i instances of MFN $mfn\n") if ($i > 1);                                  $log->info("Created $i instances of MFN $mfn\n") if ($i > 1);
536                          }                          }
   
                         $total_rows++;  
537                  }                  }
538    
539                  if ($validate) {                  if ($validate) {

Legend:
Removed from v.768  
changed lines
  Added in v.769

  ViewVC Help
Powered by ViewVC 1.1.26