X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fextract.c;h=de9e04ff9d105b5e0e9e151afa836b2ac876fd4b;hb=75049be3951292bbbbd53d83ca38ccbd191e4b08;hp=95ee86f0fad74a490aafce06a5ab3024a6c5759e;hpb=abad0a32ee7fbde0cad3bb4aa6b562d28d849d3b;p=idzebra-moved-to-github.git diff --git a/index/extract.c b/index/extract.c index 95ee86f..de9e04f 100644 --- a/index/extract.c +++ b/index/extract.c @@ -4,7 +4,14 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: extract.c,v $ - * Revision 1.86 1998-10-13 20:33:53 adam + * Revision 1.88 1998-10-16 08:14:29 adam + * Updated record control system. + * + * Revision 1.87 1998/10/15 13:10:33 adam + * Fixed bug in Zebra that caused it to stop indexing when empty + * record was read. + * + * Revision 1.86 1998/10/13 20:33:53 adam * Fixed one log message and change use ordinal to be an unsigned char. * * Revision 1.85 1998/09/22 10:03:41 adam @@ -1257,7 +1264,7 @@ static int recordExtract (SYSNO *sysno, const char *fname, return 1; logf (LOG_WARN, "No keys generated for file %s", fname); logf (LOG_WARN, " The file is probably empty"); - return 0; + return 1; } } @@ -1511,7 +1518,8 @@ int fileExtract (SYSNO *sysno, const char *fname, } if (!*rGroup->recordType) return 0; - if (!(recType = recType_byName (rGroup->recordType, subType))) + if (!(recType = + recType_byName (rGroup->recTypes, rGroup->recordType, subType))) { logf (LOG_WARN, "No such record type: %s", rGroup->recordType); return 0;