]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-bdb/idl.c
Fix prev commit, free fakeroot on teardown
[openldap] / servers / slapd / back-bdb / idl.c
index f25478ba7495881c212e3daf0d567465d6ae62f8..c84486d79040e2ddc2a5aa79cd3351680f0eff5d 100644 (file)
@@ -480,7 +480,7 @@ int
 bdb_idl_fetch_key(
        BackendDB       *be,
        DB                      *db,
-       DB_TXN          *tid,
+       u_int32_t locker,
        DBT                     *key,
        ID                      *ids,
        DBC                     **saved_cursor,
@@ -553,12 +553,13 @@ bdb_idl_fetch_key(
 
        /* If we're not reusing an existing cursor, get a new one */
        if( opflag != DB_NEXT ) {
-               rc = db->cursor( db, tid, &cursor, bdb->bi_db_opflags );
+               rc = db->cursor( db, NULL, &cursor, bdb->bi_db_opflags );
                if( rc != 0 ) {
                        Debug( LDAP_DEBUG_ANY, "=> bdb_idl_fetch_key: "
                                "cursor failed: %s (%d)\n", db_strerror(rc), rc, 0 );
                        return rc;
                }
+               cursor->locker = locker;
        } else {
                cursor = *saved_cursor;
        }