Added the scope parameter to rsets, and using it in all forwards and reads
[idzebra-moved-to-github.git] / index / invstat.c
index a02a1a6..ca1427d 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: invstat.c,v 1.38 2004-08-06 12:55:01 adam Exp $
+/* $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
 
@@ -114,15 +114,6 @@ static int inv_stat_handle (char *name, const char *info, int pos,
        stat_info->no_isam_entries[0] += occur;
         isams_pp_close (pp);
     }
-    if (stat_info->zh->reg->isam)
-    {
-        ISPT ispt;
-
-        ispt = is_position (stat_info->zh->reg->isam, (int) isam_p);
-        occur = is_numkeys (ispt);
-       stat_info->no_isam_entries[is_type(isam_p)] += occur;
-        is_pt_free (ispt);
-    }
     if (stat_info->zh->reg->isamc)
     {
         ISAMC_PP pp;
@@ -160,7 +151,7 @@ static int inv_stat_handle (char *name, const char *info, int pos,
         int size;
         int blocks;
         
-        pp = isamb_pp_open_x(stat_info->zh->reg->isamb, isam_p, &level);
+        pp = isamb_pp_open_x(stat_info->zh->reg->isamb, isam_p, &level, 0);
 
         while (isamb_pp_read(pp, &key))
         {