X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=bfile%2Fcfile.c;h=5a6209bc58b8f47e707ae235233d3312dcf94372;hb=392b67432545d96cb2f9b3264a9427582fc1934f;hp=6f35a2e05352f324ab77b0894d9a4ba12670bb81;hpb=75573f447b51a5d666a115fbf445af3d2717be48;p=idzebra-moved-to-github.git diff --git a/bfile/cfile.c b/bfile/cfile.c index 6f35a2e..5a6209b 100644 --- a/bfile/cfile.c +++ b/bfile/cfile.c @@ -1,10 +1,19 @@ /* - * Copyright (C) 1995-1998, Index Data + * Copyright (C) 1995-1998, Index Data ApS * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: cfile.c,v $ - * Revision 1.20 1998-08-07 15:07:13 adam + * Revision 1.23 1998-10-15 13:09:29 adam + * Minor changes. + * + * Revision 1.22 1998/10/13 20:07:22 adam + * Changed some log messages. + * + * Revision 1.21 1998/08/24 17:29:52 adam + * Minor changes. + * + * Revision 1.20 1998/08/07 15:07:13 adam * Fixed but in cf_commit_flat. * * Revision 1.19 1997/02/12 20:37:17 adam @@ -123,11 +132,11 @@ CFile cf_open (MFile mf, MFile_area area, const char *fname, { char path[1024]; int i; - CFile cf = xmalloc (sizeof(*cf)); + CFile cf = (CFile) xmalloc (sizeof(*cf)); int hash_bytes; cf->rmf = mf; - logf (LOG_LOG, "cf: open %s %s", cf->rmf->name, wflag ? "rdwr" : "rd"); + logf (LOG_DEBUG, "cf: open %s %s", cf->rmf->name, wflag ? "rdwr" : "rd"); sprintf (path, "%s-b", fname); if (!(cf->block_mf = mf_open (area, path, block_size, wflag))) { @@ -374,8 +383,8 @@ static void cf_moveto_flat (CFile cf) struct CFile_hash_bucket *p; int i, j; - logf (LOG_LOG, "cf: Moving to flat shadow: %s", cf->rmf->name); - logf (LOG_LOG, "cf: hits=%d miss=%d bucket_in_memory=%d total=%d", + logf (LOG_DEBUG, "cf: Moving to flat shadow: %s", cf->rmf->name); + logf (LOG_DEBUG, "cf: hits=%d miss=%d bucket_in_memory=%d total=%d", cf->no_hits, cf->no_miss, cf->bucket_in_memory, cf->head.next_bucket - cf->head.first_bucket); assert (cf->head.state == 1); @@ -536,7 +545,7 @@ int cf_write (CFile cf, int no, int offset, int num, const void *buf) int cf_close (CFile cf) { - logf (LOG_DEBUG, "cf: hits=%d miss=%d bucket_in_memory=%d total=%d", + logf (LOG_DEBUG, "cf: close hits=%d miss=%d bucket_in_memory=%d total=%d", cf->no_hits, cf->no_miss, cf->bucket_in_memory, cf->head.next_bucket - cf->head.first_bucket); flush_bucket (cf, -1);