summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-09-16 14:00:54 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-09-16 15:47:10 +0300
commit6b11f58c764d2ec5edd13987bbb61d2a0c96c7ed (patch)
treeab6e5c20a509f2b5d1a83d290230d07d70bfb0d7 /lib
parented8a4e20e55659593b2488df00143ff50c5829ea (diff)
downloadlibrpm-tizen-6b11f58c764d2ec5edd13987bbb61d2a0c96c7ed.tar.gz
librpm-tizen-6b11f58c764d2ec5edd13987bbb61d2a0c96c7ed.tar.bz2
librpm-tizen-6b11f58c764d2ec5edd13987bbb61d2a0c96c7ed.zip
Throw out useless db statistics structs
- besides being completely unused, these structs are defined by BDB public headers, no need to mirror them in rpm
Diffstat (limited to 'lib')
-rw-r--r--lib/backend/db3.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/lib/backend/db3.c b/lib/backend/db3.c
index 27d539762..db4ff14fc 100644
--- a/lib/backend/db3.c
+++ b/lib/backend/db3.c
@@ -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;