]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#4738 provisional fix from HEAD
authorHoward Chu <hyc@openldap.org>
Mon, 13 Nov 2006 00:25:27 +0000 (00:25 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 13 Nov 2006 00:25:27 +0000 (00:25 +0000)
servers/slapd/back-bdb/cache.c

index fc6770e765d37cb5b63ba80e0a82dead649beef2..896ec936ee447bde01b6bf0fa86ae9ae8e3f614f 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,