X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=isams%2Fisams.c;h=cbe85f7e4fafbd7f34043680f6ad8ab3678180b0;hb=a20e59c5087fb92c419f2330c786367f9ce8ccd2;hp=81d47e4468199ec473fb0c3075b91ab457b303fa;hpb=45dcbe04562559c1af90b5049fa1871311907072;p=idzebra-moved-to-github.git diff --git a/isams/isams.c b/isams/isams.c index 81d47e4..cbe85f7 100644 --- a/isams/isams.c +++ b/isams/isams.c @@ -1,10 +1,13 @@ /* - * Copyright (c) 1995-1999, Index Data. + * Copyright (c) 1995-2001, Index Data. * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * * $Log: isams.c,v $ - * Revision 1.1 1999-11-30 14:02:45 adam + * Revision 1.2 2001-10-26 20:22:31 adam + * Less LOG_LOG messages. + * + * Revision 1.1 1999/11/30 14:02:45 adam * Moved isams. * * Revision 1.5 1999/07/14 10:59:27 adam @@ -197,14 +200,16 @@ ISAMS_PP isams_pp_open (ISAMS is, ISAMS_P pos) pp->buf = (char *) xmalloc(is->block_size*2); pp->block_no = pos/is->block_size; pp->block_offset = pos - pp->block_no * is->block_size; - logf (LOG_LOG, "isams: isams_pp_open off=%d no=%d", - pp->block_offset, pp->block_no); + if (is->debug) + logf (LOG_LOG, "isams: isams_pp_open off=%d no=%d", + pp->block_offset, pp->block_no); if (pos) { bf_read (is->bf, pp->block_no, 0, 0, pp->buf); bf_read (is->bf, pp->block_no+1, 0, 0, pp->buf + is->block_size); memcpy(&pp->numKeys, pp->buf + pp->block_offset, sizeof(int)); - logf (LOG_LOG, "isams: isams_pp_open numKeys=%d", pp->numKeys); + if (is->debug) + logf (LOG_LOG, "isams: isams_pp_open numKeys=%d", pp->numKeys); pp->block_offset += sizeof(int); } return pp;