Throw out useless db statistics structs
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 16 Sep 2009 11:00:54 +0000 (14:00 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 16 Sep 2009 12:47:10 +0000 (15:47 +0300)
- besides being completely unused, these structs are defined by BDB
  public headers, no need to mirror them in rpm

lib/backend/db3.c

index 27d5397..db4ff14 100644 (file)
@@ -23,53 +23,6 @@ static int _debug = 1;       /* XXX if < 0 debugging, > 0 unusual error returns */
 #define        DB_CLIENT       DB_RPCCLIENT
 #endif
 
-
-/** \ingroup dbi
- * Hash database statistics.
- */
-struct dbiHStats_s {
-    unsigned int hash_magic;   /*!< hash database magic number. */
-    unsigned int hash_version; /*!< version of the hash database. */
-    unsigned int hash_nkeys;   /*!< no. of unique keys in the database. */
-    unsigned int hash_ndata;   /*!< no. of key/data pairs in the database. */
-    unsigned int hash_pagesize;        /*!< db page (and bucket) size, in bytes. */
-    unsigned int hash_nelem;   /*!< estimated size of the hash table. */
-    unsigned int hash_ffactor; /*!< no. of items per bucket. */
-    unsigned int hash_buckets; /*!< no. of hash buckets. */
-    unsigned int hash_free;    /*!< no. of pages on the free list. */
-    unsigned int hash_bfree;   /*!< no. of bytes free on bucket pages. */
-    unsigned int hash_bigpages;        /*!< no. of big key/data pages. */
-    unsigned int hash_big_bfree;/*!< no. of bytes free on big item pages. */
-    unsigned int hash_overflows;/*!< no. of overflow pages. */
-    unsigned int hash_ovfl_free;/*!< no. of bytes free on overflow pages. */
-    unsigned int hash_dup;     /*!< no. of duplicate pages. */
-    unsigned int hash_dup_free;        /*!< no. bytes free on duplicate pages. */
-};
-
-/** \ingroup dbi
- * B-tree database statistics.
- */
-struct dbiBStats_s {
-    unsigned int bt_magic;     /*!< btree database magic. */
-    unsigned int bt_version;   /*!< version of the btree database. */
-    unsigned int bt_nkeys;     /*!< no. of unique keys in the database. */
-    unsigned int bt_ndata;     /*!< no. of key/data pairs in the database. */
-    unsigned int bt_pagesize;  /*!< database page size, in bytes. */
-    unsigned int bt_minkey;    /*!< minimum keys per page. */
-    unsigned int bt_re_len;    /*!< length of fixed-length records. */
-    unsigned int bt_re_pad;    /*!< padding byte for fixed-length records. */
-    unsigned int bt_levels;    /*!< no. of levels in the database. */
-    unsigned int bt_int_pg;    /*!< no. of database internal pages. */
-    unsigned int bt_leaf_pg;   /*!< no. of database leaf pages. */
-    unsigned int bt_dup_pg;    /*!< no. of database duplicate pages. */
-    unsigned int bt_over_pg;   /*!< no. of database overflow pages. */
-    unsigned int bt_free;      /*!< no. of pages on the free list. */
-    unsigned int bt_int_pgfree;        /*!< no. of bytes free in internal pages. */
-    unsigned int bt_leaf_pgfree;/*!< no. of bytes free in leaf pages. */
-    unsigned int bt_dup_pgfree;        /*!< no. of bytes free in duplicate pages. */
-    unsigned int bt_over_pgfree;/*!< no. of bytes free in overflow pages. */
-};
-
 static int cvtdberr(dbiIndex dbi, const char * msg, int error, int printit)
 {
     int rc = error;