X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Finvstat.c;h=c4bc74fc4fef5270c12313efc126da210fb0c206;hb=6c9fcd3b5d3108702fa1ffc92dab4ab6060f9a19;hp=ca1427d5a77254d8fbb4d0cbb789ff26d5b47aa2;hpb=726c42c6ae793b79a5351d2fce805d220d21321e;p=idzebra-moved-to-github.git diff --git a/index/invstat.c b/index/invstat.c index ca1427d..c4bc74f 100644 --- a/index/invstat.c +++ b/index/invstat.c @@ -1,6 +1,6 @@ -/* $Id: invstat.c,v 1.40 2004-09-09 10:08:05 heikki Exp $ - Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 - Index Data Aps +/* $Id: invstat.c,v 1.43 2005-01-15 19:38:25 adam Exp $ + Copyright (C) 1995-2005 + Index Data ApS This file is part of the Zebra server. @@ -63,7 +63,7 @@ static void print_dict_item (ZebraMaps zm, const char *s, zint count, *to++ = *res++; } *to = '\0'; - /* yaz_log (LOG_LOG, "%s", keybuf); */ + /* yaz_log (YLOG_LOG, "%s", keybuf); */ printf("%10" ZINT_FORMAT0 " %s %d.%d - %d.%d\n", count, keybuf, firstsys,firstseq, lastsys,lastseq); } @@ -97,18 +97,6 @@ static int inv_stat_handle (char *name, const char *info, int pos, while (isams_pp_read(pp, &key)) { occurx++; -#if IT_KEY_NEW -#else - stat_info->cksum = stat_info->cksum * 65509 + - key.sysno + 11 * key.seqno; - if (-1==firstsys) - { - firstseq=key.seqno; - firstsys=key.sysno; - } - lastsys=key.sysno; - lastseq=key.seqno; -#endif } assert (occurx == occur); stat_info->no_isam_entries[0] += occur; @@ -125,18 +113,6 @@ static int inv_stat_handle (char *name, const char *info, int pos, while (isc_pp_read(pp, &key)) { occurx++; -#if IT_KEY_NEW -#else - stat_info->cksum = stat_info->cksum * 65509 + - key.sysno + 11 * key.seqno; - if (-1==firstsys) - { - firstseq=key.seqno; - firstsys=key.sysno; - } - lastsys=key.sysno; - lastseq=key.seqno; -#endif } assert (occurx == occur); stat_info->no_isam_entries[isc_type(isam_p)] += occur; @@ -156,18 +132,6 @@ static int inv_stat_handle (char *name, const char *info, int pos, while (isamb_pp_read(pp, &key)) { occur++; -#if IT_KEY_NEW -#else - stat_info->cksum = stat_info->cksum * 65509 + - key.sysno + 11 * key.seqno; - if (-1==firstsys) - { - firstseq=key.seqno; - firstsys=key.sysno; - } - lastsys=key.sysno; - lastseq=key.seqno; -#endif } isamb_pp_close_x (pp, &size, &blocks); stat_info->isamb_blocks[cat] += blocks;