Back to index

openldap  2.4.31
Classes | Defines | Typedefs
back-mdb.h File Reference
#include <portable.h>
#include "slap.h"
#include "mdb.h"
#include "proto-mdb.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  mdb_monitor_t
struct  mdb_info
struct  mdb_op_info
struct  mdb_attrinfo
struct  AttrList
struct  IndexRbody
struct  IndexRec
union  IndexRec.iru


#define DN_ONE_PREFIX   '%'
#define DN_SUBTREE_PREFIX   '@'
#define MDB_AD2ID   0
#define MDB_DN2ID   1
#define MDB_ID2ENTRY   2
#define MDB_NDB   3
#define MDB_INDICES   128
#define MDB_MAXADS   65536
#define DEFAULT_MAPSIZE   (10*1048576)
#define MDB_IS_OPEN   0x01
#define MDB_OPEN_INDEX   0x02
#define MDB_DEL_INDEX   0x08
#define MDB_RE_OPEN   0x10
#define mi_id2entry   mi_dbis[MDB_ID2ENTRY]
#define mi_dn2id   mi_dbis[MDB_DN2ID]
#define mi_ad2id   mi_dbis[MDB_AD2ID]
#define MOI_READER   0x01
#define MOI_FREEIT   0x02
#define MDB_ID2DISK(src, dst)
#define MDB_DISK2ID(src, dst)
#define MDB_INDEX_DELETING   0x8000U /* index is being modified */
#define MDB_INDEX_UPDATE_OP   0x03 /* performing an index update */
#define CACHELINE   64
#define ALIGNER   (sizeof(size_t)-1)
#define ir_ai
#define ir_attrs   iru.irb.attrs
#define ir_tptr   iru.irb.tptr
#define ir_i   iru.irb.i


typedef struct mdb_monitor_t mdb_monitor_t
typedef struct mdb_op_info mdb_op_info
typedef LDAP_END_DECL struct
typedef struct AttrList AttrList
typedef struct IndexRbody IndexRbody
typedef struct IndexRec IndexRec

Class Documentation

struct mdb_monitor_t

Definition at line 54 of file back-mdb.h.

Class Members
void * mdm_cb
struct mdb_info

Definition at line 62 of file back-mdb.h.

Collaboration diagram for mdb_info:
Class Members
AttributeDescription * mi_ads
int mi_adxs
struct mdb_attrinfo ** mi_attrs
MDB_env * mi_dbenv
uint32_t mi_dbenv_flags
char * mi_dbenv_home
int mi_dbenv_mode
MDB_dbi mi_dbis
slap_mask_t mi_defaultmask
int mi_flags
struct re_s * mi_index_task
size_t mi_mapsize
mdb_monitor_t mi_monitor
int mi_nattrs
int mi_numads
int mi_readers
void * mi_search_stack
int mi_search_stack_depth
int mi_txn_cp
uint32_t mi_txn_cp_kbyte
uint32_t mi_txn_cp_min
struct re_s * mi_txn_cp_task
struct mdb_op_info

Definition at line 110 of file back-mdb.h.

Collaboration diagram for mdb_op_info:
Class Members
char moi_flag
OpExtra moi_oe
int moi_ref
MDB_txn * moi_txn
struct mdb_attrinfo

Definition at line 140 of file back-mdb.h.

Collaboration diagram for mdb_attrinfo:
Class Members
void * ai_clist
MDB_cursor * ai_cursor
MDB_dbi ai_dbi
AttributeDescription * ai_desc
void * ai_flist
int ai_idx
slap_mask_t ai_indexmask
slap_mask_t ai_newmask
Avlnode * ai_root
struct AttrList

Definition at line 365 of file back-bdb.h.

Collaboration diagram for AttrList:
Class Members
Attribute * attr
struct AttrList * next
struct IndexRbody

Definition at line 177 of file back-mdb.h.

Collaboration diagram for IndexRbody:
Class Members
AttrInfo * ai
AttrList * attrs
int i
void * tptr
struct IndexRec

Definition at line 370 of file back-bdb.h.

Collaboration diagram for IndexRec:
Class Members
AttrInfo * ai
AttrList * attrs
union IndexRec iru
union IndexRec.iru

Definition at line 185 of file back-mdb.h.

Class Members
IndexRbody irb
char pad

Define Documentation

#define ALIGNER   (sizeof(size_t)-1)

Definition at line 174 of file back-mdb.h.

#define CACHELINE   64

Definition at line 168 of file back-mdb.h.

#define DEFAULT_MAPSIZE   (10*1048576)

Definition at line 48 of file back-mdb.h.


Definition at line 38 of file back-mdb.h.

Definition at line 28 of file back-mdb.h.

#define DN_ONE_PREFIX   '%'

Definition at line 29 of file back-mdb.h.

#define DN_SUBTREE_PREFIX   '@'

Definition at line 30 of file back-mdb.h.

#define ir_ai

Definition at line 187 of file back-mdb.h.

#define ir_attrs   iru.irb.attrs

Definition at line 188 of file back-mdb.h.

#define ir_i   iru.irb.i

Definition at line 190 of file back-mdb.h.

#define ir_tptr   iru.irb.tptr

Definition at line 189 of file back-mdb.h.


Definition at line 196 of file back-mdb.h.

#define MDB_AD2ID   0

Definition at line 32 of file back-mdb.h.

#define MDB_DEL_INDEX   0x08

Definition at line 96 of file back-mdb.h.

#define MDB_DISK2ID (   src,
do { unsigned i0; ID tmp = 0; unsigned char *_p; \
              _p = (unsigned char *)(src);       \
              for ( i0=0; i0<sizeof(ID); i0++ ) {       \
                     tmp <<= 8; tmp |= *_p++;    \
              } *(dst) = tmp; \
       } while (0)

Definition at line 129 of file back-mdb.h.

#define MDB_DN2ID   1

Definition at line 33 of file back-mdb.h.

#define MDB_ID2DISK (   src,
do { int i0; ID tmp; unsigned char *_p;   \
              tmp = (src); _p = (unsigned char *)(dst); \
              for ( i0=sizeof(ID)-1; i0>=0; i0-- ) {    \
                     _p[i0] = tmp & 0xff; tmp >>= 8;    \
              } \
       } while(0)

Definition at line 120 of file back-mdb.h.

#define MDB_ID2ENTRY   2

Definition at line 34 of file back-mdb.h.

#define MDB_INDEX_DELETING   0x8000U /* index is being modified */

Definition at line 156 of file back-mdb.h.

#define MDB_INDEX_UPDATE_OP   0x03 /* performing an index update */

Definition at line 157 of file back-mdb.h.

#define MDB_INDICES   128

Definition at line 43 of file back-mdb.h.

#define MDB_IS_OPEN   0x01

Definition at line 94 of file back-mdb.h.

#define MDB_MAXADS   65536

Definition at line 45 of file back-mdb.h.

#define MDB_NDB   3

Definition at line 35 of file back-mdb.h.

#define MDB_OPEN_INDEX   0x02

Definition at line 95 of file back-mdb.h.

#define MDB_RE_OPEN   0x10

Definition at line 97 of file back-mdb.h.


Definition at line 26 of file back-mdb.h.

#define mi_ad2id   mi_dbis[MDB_AD2ID]

Definition at line 108 of file back-mdb.h.

#define mi_dn2id   mi_dbis[MDB_DN2ID]

Definition at line 107 of file back-mdb.h.

#define mi_id2entry   mi_dbis[MDB_ID2ENTRY]

Definition at line 106 of file back-mdb.h.

Definition at line 41 of file back-mdb.h.

#define MOI_FREEIT   0x02

Definition at line 117 of file back-mdb.h.

#define MOI_READER   0x01

Definition at line 116 of file back-mdb.h.

Typedef Documentation

typedef struct AttrList AttrList
typedef struct IndexRbody IndexRbody
typedef struct IndexRec IndexRec
typedef struct mdb_monitor_t mdb_monitor_t
typedef struct mdb_op_info mdb_op_info