]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-bdb/id2entry.c
Move MSVC port to the Attic
[openldap] / servers / slapd / back-bdb / id2entry.c
index 37cdcb67dfccf89c0115806c75ac32c03634e67f..05501b0e421fb05aabd51ac94c74fc800e581110 100644 (file)
@@ -265,7 +265,7 @@ int bdb_entry_get(
 #endif
 
        if( op ) boi = (struct bdb_op_info *) op->o_private;
-       if( boi != NULL && op->o_bd == boi->boi_bdb ) {
+       if( boi != NULL && op->o_bd->be_private == boi->boi_bdb->be_private ) {
                txn = boi->boi_txn;
                locker = boi->boi_locker;
        }
@@ -386,6 +386,7 @@ return_results:
                        if ( op && !boi ) {
                                boi = op->o_tmpcalloc(1,sizeof(struct bdb_op_info),op->o_tmpmemctx);
                                boi->boi_lock = lock;
+                               boi->boi_bdb = op->o_bd;
                                op->o_private = boi;
                        }