]> git.sur5r.net Git - openldap/commitdiff
ITS#3201 fix conflict with BDB internal locks
authorHoward Chu <hyc@openldap.org>
Thu, 24 Jun 2004 23:50:10 +0000 (23:50 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 24 Jun 2004 23:50:10 +0000 (23:50 +0000)
servers/slapd/back-bdb/back-bdb.h

index ebc4cd0c8a1f5f1e2a14adb873b17d995132c322..e3846c9b9b64acd1c4236b9019bbb6cd7bc11e96 100644 (file)
@@ -92,7 +92,13 @@ typedef struct bdb_entry_info {
        struct bdb_entry_info *bei_parent;
        ID bei_id;
 
-       int bei_state;
+       /* we use the bei_id as a lockobj, but we need to make the size != 4
+        * to avoid conflicting with BDB's internal locks. So add a byte here
+        * that is always zero.
+        */
+       char bei_lockpad;
+                                               
+       short bei_state;
 #define        CACHE_ENTRY_DELETED     1
 #define        CACHE_ENTRY_NO_KIDS     2
 #define        CACHE_ENTRY_NOT_LINKED  4