Skip to content
Snippets Groups Projects
Commit 5b46bdeb authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

mdb_db_close() should not force env_sync in quick mode

parent 68859807
No related branches found
No related tags found
No related merge requests found
...@@ -279,13 +279,17 @@ mdb_db_close( BackendDB *be, ConfigReply *cr ) ...@@ -279,13 +279,17 @@ mdb_db_close( BackendDB *be, ConfigReply *cr )
mdb_txn_abort( txn ); mdb_txn_abort( txn );
/* force a sync */ /* force a sync, but not if we were ReadOnly,
rc = mdb_env_sync( mdb->mi_dbenv, 1 ); * and not in Quick mode.
if( rc != 0 ) { */
Debug( LDAP_DEBUG_ANY, if (!(slapMode & (SLAP_TOOL_QUICK|SLAP_TOOL_READONLY))) {
"mdb_db_close: database \"%s\": " rc = mdb_env_sync( mdb->mi_dbenv, 1 );
"mdb_env_sync failed: %s (%d).\n", if( rc != 0 ) {
be->be_suffix[0].bv_val, mdb_strerror(rc), rc ); Debug( LDAP_DEBUG_ANY,
"mdb_db_close: database \"%s\": "
"mdb_env_sync failed: %s (%d).\n",
be->be_suffix[0].bv_val, mdb_strerror(rc), rc );
}
} }
} }
......
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