db

mp.h File Reference

#include "mp_ext.h"

Go to the source code of this file.


Classes

struct __bh
struct __cmpr
struct __db_mpool
struct __db_mpreg
struct __mpool
struct __mpoolfile

Defines

#define BH_CALLPGIN 0x001
#define BH_CMPR 0x040
#define BH_CMPR_OS 0x100
#define BH_CMPR_POOL 0x080
#define BH_DIRTY 0x002
#define BH_DISCARD 0x004
#define BH_LOCKED 0x008
#define BH_TO_CACHE(dbmp, bhp) (dbmp)->reginfo[NCACHE((dbmp)->reginfo[0].primary, (bhp)->pgno)].primary
#define BH_TRASH 0x010
#define BH_WRITE 0x020
#define DB_CACHESIZE_MIN (20 * 1024)
#define DB_CMPR_CHAIN 0x04
#define DB_CMPR_DATA(io) (io->buf + DB_CMPR_OVERHEAD)
#define DB_CMPR_DIVIDE(dbenv, size) ((size) >> CDB___memp_cmpr_coefficient(dbenv) )
#define DB_CMPR_FIRST 0x01
#define DB_CMPR_FREE 0x08
#define DB_CMPR_INTERNAL 0x02
#define DB_CMPR_MULTIPLY(dbenv, size) ((size) << CDB___memp_cmpr_coefficient(dbenv) )
#define DB_CMPR_OVERHEAD sizeof(struct __cmpr)
#define DB_CMPR_PAGESIZE(io) (io->pagesize - DB_CMPR_OVERHEAD)
#define MP_CAN_MMAP 0x01
#define MP_CMPR 0x08
#define MP_DEADFILE 0x02
#define MP_LSN_RETRY 0x01
#define MP_READONLY 0x01
#define MP_TEMP 0x04
#define MP_UPGRADE 0x02
#define MP_UPGRADE_FAIL 0x04
#define NBUCKET(mc, mf_offset, pgno) (((pgno) ^ ((mf_offset) << 9)) % (mc)->htab_buckets)
#define NCACHE(mp, pgno) ((pgno) % ((MPOOL *)mp)->nreg)

Typedefs

typedef struct __bh BH
typedef struct __cmpr CMPR
typedef struct __db_mpool DB_MPOOL
typedef struct __db_mpreg DB_MPREG
typedef struct __mpool MPOOL
typedef struct __mpoolfile MPOOLFILE

Generated on Sun Jun 8 10:56:53 2008 for GNUmifluz by doxygen 1.5.5

AltStyle によって変換されたページ (->オリジナル) /