X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Finvstat.c;h=3c3c55af730253a40368ff2808e5731231b679ed;hb=6e044d5a523bb4363d07af757ebf1bcfe0ad6c04;hp=afd0147830db19877c1abef9361d746c5cce6536;hpb=801ef4b322574c793abdc1ba81dea2da62ca60bc;p=idzebra-moved-to-github.git diff --git a/index/invstat.c b/index/invstat.c index afd0147..3c3c55a 100644 --- a/index/invstat.c +++ b/index/invstat.c @@ -1,10 +1,16 @@ /* - * Copyright (C) 1994-1998, Index Data I/S + * Copyright (C) 1994-1999, Index Data * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: invstat.c,v $ - * Revision 1.7 1998-03-13 15:30:50 adam + * Revision 1.9 1999-02-12 13:29:23 adam + * Implemented position-flag for registers. + * + * Revision 1.8 1999/02/02 14:50:53 adam + * Updated WIN32 code specific sections. Changed header. + * + * Revision 1.7 1998/03/13 15:30:50 adam * New functions isc_block_used and isc_block_size. Fixed 'leak' * in isc_alloc_block. * @@ -64,6 +70,7 @@ static int inv_stat_handle (char *name, const char *info, int pos, assert (*info == sizeof(ISAM_P)); memcpy (&isam_p, info+1, sizeof(ISAM_P)); + printf ("---\n"); if (stat_info->isam) { ISPT ispt; @@ -76,12 +83,15 @@ static int inv_stat_handle (char *name, const char *info, int pos, { ISAMC_PP pp; int occurx = 0; - char buf[128]; + struct it_key key; pp = isc_pp_open (stat_info->isamc, isam_p); occur = isc_pp_num (pp); - while (isc_pp_read(pp, buf)) + while (isc_pp_read(pp, &key)) + { + printf ("sysno=%d seqno=%d\n", key.sysno, key.seqno); occurx++; + } assert (occurx == occur); stat_info->no_isam_entries[isc_type(isam_p)] += occur; isc_pp_close (pp);