]> git.sur5r.net Git - openldap/commitdiff
ITS#4738 provisional fix, still needs confirmation
authorHoward Chu <hyc@openldap.org>
Mon, 13 Nov 2006 00:24:59 +0000 (00:24 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 13 Nov 2006 00:24:59 +0000 (00:24 +0000)
servers/slapd/back-bdb/cache.c

index b55b8d053d78fd6202b6fe92a75de97a2fc81351..ad0cd02cc0543fcd02caf9a205cd594211dd7fdb 100644 (file)
@@ -770,7 +770,9 @@ load1:
 #endif
                                                ep = NULL;
                                        }
+                                       bdb_cache_entryinfo_lock( *eip );
                                        (*eip)->bei_state ^= CACHE_ENTRY_LOADING;
+                                       bdb_cache_entryinfo_unlock( *eip );
                                        if ( rc == 0 ) {
                                                /* If we succeeded, downgrade back to a readlock. */
                                                rc = bdb_cache_entry_db_relock( bdb->bi_dbenv, locker,