+ if (stat_info->isamh)
+ {
+ ISAMH_PP pp;
+ int occurx = 0;
+ struct it_key key;
+
+ pp = isamh_pp_open (stat_info->isamh, isam_p);
+
+ occur = isamh_pp_num (pp);
+ // printf (" opening item %d=%d:%d \n",
+ // isam_p, isamh_type(isam_p),isamh_block(isam_p));
+ while (isamh_pp_read(pp, &key))
+ {
+ occurx++;
+ logf (LOG_LOG,"sysno=%d seqno=%d (%x/%x) oc=%d/%d ofs=%d ",
+ key.sysno, key.seqno,
+ key.sysno, key.seqno,
+ occur,occurx, pp->offset);
+ }
+ if (occurx != occur)
+ logf(LOG_LOG,"Count error!!! read %d, counted %d", occur, occurx);
+ assert (occurx == occur);
+ stat_info->no_isam_entries[isamh_type(isam_p)] += occur;
+ isamh_pp_close (pp);
+ }
+ if (stat_info->isamd)
+ {
+ ISAMD_PP pp;
+ int occurx = 0;
+ struct it_key key;
+
+ pp = isamd_pp_open (stat_info->isamd, isam_p);
+
+ occur = isamd_pp_num (pp);
+ // printf (" opening item %d=%d:%d \n",
+ // isam_p, isamh_type(isam_p),isamh_block(isam_p));
+ while (isamd_pp_read(pp, &key))
+ {
+ occurx++;
+ logf (LOG_LOG,"sysno=%d seqno=%d (%x/%x) oc=%d/%d ofs=%d ",
+ key.sysno, key.seqno,
+ key.sysno, key.seqno,
+ occur,occurx, pp->offset);
+ }
+ if (occurx != occur)
+ logf(LOG_LOG,"Count error!!! read %d, counted %d", occur, occurx);
+ assert (occurx == occur);
+ stat_info->no_isam_entries[isamd_type(isam_p)] += occur;
+ isamd_pp_close (pp);
+ }
+ if (stat_info->isams)
+ {
+ ISAMS_PP pp;
+ int occurx = 0;
+ struct it_key key;
+
+ pp = isams_pp_open (stat_info->isams, isam_p);
+ occur = isams_pp_num (pp);
+ while (isams_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;
+ isams_pp_close (pp);
+ }