X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fslap.h;h=786702b2e4590cf4b33eb5926b3d610f30114d24;hb=6e63b58a3e3f8421d6d988a3a57749a0bece83d4;hp=17f67a30a5840ee83bc035e328e603374b763be1;hpb=42f6e78dd4e2d481c1bc75b8bc6d38fe9c62bc07;p=openldap diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index 17f67a30a5..786702b2e4 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -138,33 +138,19 @@ typedef unsigned long ID; * represents an entry in core */ typedef struct entry { - ldap_pvt_thread_rdwr_t e_rdwr; /* reader/writer lock */ - - char *e_dn; /* DN of this entry */ - char *e_ndn; /* normalized DN of this entry */ - Attribute *e_attrs; /* list of attributes + values */ - - /* * The ID field should only be changed before entry is * inserted into a cache. The ID value is backend * specific. */ - ID e_id; /* id of this entry - this should */ - /* really be private to back-ldbm */ + ID e_id; - /* - * remaining fields require backend cache lock to access - * These items are specific to the LDBM backend and should - * be hidden. - */ - char e_state; /* for the cache */ -#define ENTRY_STATE_DELETED 1 -#define ENTRY_STATE_CREATING 2 + char *e_dn; /* DN of this entry */ + char *e_ndn; /* normalized DN of this entry */ + Attribute *e_attrs; /* list of attributes + values */ - int e_refcnt; /* # threads ref'ing this entry */ - struct entry *e_lrunext; /* for cache lru list */ - struct entry *e_lruprev; + /* for use by the backend for any purpose */ + void* e_private; } Entry; /* @@ -387,6 +373,7 @@ struct backend_info { char *objectclassValue, char *groupattrName )); #endif + unsigned int bi_nDB; /* number of databases of this type */ void *bi_private; /* anything the backend type needs */ };