]> git.sur5r.net Git - openldap/commitdiff
ITS#3833 assume environment was already recovered by an external action
authorHoward Chu <hyc@openldap.org>
Tue, 5 Jul 2005 02:40:01 +0000 (02:40 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 5 Jul 2005 02:40:01 +0000 (02:40 +0000)
if it's missing, just succeed in this case.

servers/slapd/back-bdb/init.c

index d8fea3b380f99f4532d2efedc574b1c407d16843..a2810c1eca4fa48002dd204ad2312195e75c36a2 100644 (file)
@@ -209,7 +209,10 @@ bdb_db_recover( BackendDB *be )
 #endif
 
        if( rc == ENOENT ) {
-               goto re_exit;
+               Debug( LDAP_DEBUG_TRACE,
+                       "bdb_db_recover: DB environment files are missing, assuming it was "
+                       "manually recovered\n", 0, 0, 0 );
+               return 0;
        }
        else if( rc != 0 ) {
                Debug( LDAP_DEBUG_ANY,