]> git.sur5r.net Git - openldap/commitdiff
ITS#5455 be sure to reset bei_finders / bei_state
authorHoward Chu <hyc@openldap.org>
Wed, 9 Apr 2008 00:12:08 +0000 (00:12 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 9 Apr 2008 00:12:08 +0000 (00:12 +0000)
servers/slapd/back-bdb/cache.c

index ff512977bc40d83fce6371cc3a793c3a6c854164..065c6d25cb24e264361eb0427afaeb3be66e8ca5 100644 (file)
@@ -964,12 +964,12 @@ load1:
                                        }
 #endif
                                }
-                               bdb_cache_entryinfo_lock( *eip );
-                               (*eip)->bei_finders--;
-                               if ( load )
-                                       (*eip)->bei_state ^= CACHE_ENTRY_LOADING;
-                               bdb_cache_entryinfo_unlock( *eip );
                        }
+                       bdb_cache_entryinfo_lock( *eip );
+                       (*eip)->bei_finders--;
+                       if ( load )
+                               (*eip)->bei_state ^= CACHE_ENTRY_LOADING;
+                       bdb_cache_entryinfo_unlock( *eip );
                }
        }
        if ( flag & ID_LOCKED ) {