From: Howard Chu Date: Wed, 18 Feb 2009 00:17:59 +0000 (+0000) Subject: Cleanup prev commit X-Git-Tag: ACLCHECK_0~811 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=168fa346cc6009311c557fab5d595f1ca51740c5;p=openldap Cleanup prev commit --- diff --git a/servers/slapd/back-bdb/init.c b/servers/slapd/back-bdb/init.c index f34271a0db..a029fee3c8 100644 --- a/servers/slapd/back-bdb/init.c +++ b/servers/slapd/back-bdb/init.c @@ -336,15 +336,13 @@ shm_retry: if ( !do_recover && bdb->bi_shm_key ) { bdb->bi_dbenv->close( bdb->bi_dbenv, 0 ); rc = db_env_create( &bdb->bi_dbenv, 0 ); - if( rc == 0 ) { + if( rc == 0 && do_retry ) { Debug( LDAP_DEBUG_ANY, LDAP_XSTRING(bdb_db_open) ": database \"%s\": " "shared memory env open failed, assuming stale env.\n", be->be_suffix[0].bv_val, 0, 0 ); - if ( do_retry ) { - do_retry = 0; - goto shm_retry; - } + do_retry = 0; + goto shm_retry; } } Debug( LDAP_DEBUG_ANY,