Skip to content
Snippets Groups Projects
Commit b28f5ab7 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

ITS#5961

parent 5a11e387
No related branches found
No related tags found
No related merge requests found
...@@ -333,10 +333,10 @@ shm_retry: ...@@ -333,10 +333,10 @@ shm_retry:
/* Regular open failed, probably a missing shm environment. /* Regular open failed, probably a missing shm environment.
* Start over, do a recovery. * Start over, do a recovery.
*/ */
if ( !do_recover && bdb->bi_shm_key ) { if ( !do_recover && bdb->bi_shm_key && do_retry ) {
bdb->bi_dbenv->close( bdb->bi_dbenv, 0 ); bdb->bi_dbenv->close( bdb->bi_dbenv, 0 );
rc = db_env_create( &bdb->bi_dbenv, 0 ); rc = db_env_create( &bdb->bi_dbenv, 0 );
if( rc == 0 && do_retry ) { if( rc == 0 ) {
Debug( LDAP_DEBUG_ANY, LDAP_XSTRING(bdb_db_open) Debug( LDAP_DEBUG_ANY, LDAP_XSTRING(bdb_db_open)
": database \"%s\": " ": database \"%s\": "
"shared memory env open failed, assuming stale env.\n", "shared memory env open failed, assuming stale env.\n",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment