X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Fextract.c;h=da261e2cdb17b610a0d63922eb2a55f0d9119c54;hp=d235a4400b92d1730b2cd650ad12d50e56abfc9e;hb=10e178572346e8c5c3caaa43b803dd10c005cb5f;hpb=0a50c507e32a11d9ef0d1f8458b02590044f25d5 diff --git a/index/extract.c b/index/extract.c index d235a44..da261e2 100644 --- a/index/extract.c +++ b/index/extract.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: extract.c,v $ - * Revision 1.94 1999-05-20 12:57:18 adam + * Revision 1.95 1999-05-21 12:00:17 adam + * Better diagnostics for extraction process. + * + * Revision 1.94 1999/05/20 12:57:18 adam * Implemented TCL filter. Updated recctrl system. * * Revision 1.93 1999/05/15 14:36:38 adam @@ -1297,14 +1300,16 @@ static int recordExtract (SYSNO *sysno, const char *fname, log_event_start (NULL, NULL); - if (r) - { + if (r == RECCTRL_EXTRACT_EOF) + return 0; + else if (r == RECCTRL_EXTRACT_ERROR) + { /* error occured during extraction ... */ if (rGroup->flagRw && records_processed < rGroup->fileVerboseLimit) { - logf (LOG_WARN, "fail %s %s %ld code = %d", rGroup->recordType, - fname, (long) recordOffset, r); + logf (LOG_WARN, "fail %s %s %ld", rGroup->recordType, + fname, (long) recordOffset); } return 0; }