Minor cleanup

vmware
Howard Chu 13 years ago
parent 19f5eebff8
commit 3e1c72a08e
  1. 2
      libraries/libmdb/mdb.c

@ -252,7 +252,6 @@ struct MDB_cursor {
struct MDB_xcursor *mc_xcursor; struct MDB_xcursor *mc_xcursor;
}; };
#define METAHASHLEN offsetof(MDB_meta, mm_hash)
#define METADATA(p) ((void *)((char *)p + PAGEHDRSZ)) #define METADATA(p) ((void *)((char *)p + PAGEHDRSZ))
typedef struct MDB_node { typedef struct MDB_node {
@ -341,7 +340,6 @@ struct MDB_env {
#define NODEDSZ(node) ((node)->mn_dsize) #define NODEDSZ(node) ((node)->mn_dsize)
#define MDB_COMMIT_PAGES 64 /* max number of pages to write in one commit */ #define MDB_COMMIT_PAGES 64 /* max number of pages to write in one commit */
#define MDB_MAXCACHE_DEF 1024 /* max number of pages to keep in cache */
static int mdb_search_page_root(MDB_txn *txn, static int mdb_search_page_root(MDB_txn *txn,
MDB_dbi dbi, MDB_val *key, MDB_dbi dbi, MDB_val *key,

Loading…
Cancel
Save