From 168fa346cc6009311c557fab5d595f1ca51740c5 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 18 Feb 2009 00:17:59 +0000 Subject: [PATCH] Cleanup prev commit --- servers/slapd/back-bdb/init.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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, -- 2.39.5