X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=bfile%2Fcommit.c;h=547df668232af6a9af0066010b77ff319e270e1c;hp=45de7ff7d83f05c1d3afea227b722deb9c71775a;hb=7edae22b5d556f3db505615888ef02b950dd5e83;hpb=500a61134d49f8d0288a772f8d87e7a5b3280bd2 diff --git a/bfile/commit.c b/bfile/commit.c index 45de7ff..547df66 100644 --- a/bfile/commit.c +++ b/bfile/commit.c @@ -4,7 +4,11 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: commit.c,v $ - * Revision 1.9 1996-04-12 07:01:57 adam + * Revision 1.10 1996-04-18 16:02:56 adam + * Changed logging a bit. + * Removed warning message when commiting flat shadow files. + * + * Revision 1.9 1996/04/12 07:01:57 adam * Yet another bug fix (next_block was initialized to 0; now set to 1). * * Revision 1.8 1996/02/07 14:03:49 adam @@ -94,16 +98,16 @@ static void cf_commit_flat (CFile cf) fp = xmalloc (HASH_BSIZE); for (hno = cf->head.next_bucket; hno < cf->head.flat_bucket; hno++) { - if (hno == cf->head.next_bucket || hno == cf->head.flat_bucket-1) + if (hno == cf->head.flat_bucket-1) { for (i = 0; i < (HASH_BSIZE/sizeof(int)); i++) fp[i] = 0; } - if (!mf_read (cf->hash_mf, hno, 0, 0, fp)) + if (!mf_read (cf->hash_mf, hno, 0, 0, fp) && + hno != cf->head.flat_bucket-1) { - logf (LOG_WARN, "read index block hno=%d (%d-%d) commit", - hno, cf->head.next_bucket, - cf->head.flat_bucket-1); + logf (LOG_FATAL, "read index block hno=%d (%d-%d) commit", + hno, cf->head.next_bucket, cf->head.flat_bucket-1); } for (i = 0; i < (HASH_BSIZE/sizeof(int)); i++) {