1 /* close.c - close ldbm backend */
3 * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
11 #include <ac/socket.h>
14 #include "back-ldbm.h"
17 ldbm_back_db_close( Backend *be )
19 Debug( LDAP_DEBUG_TRACE, "ldbm backend saving nextid\n", 0, 0, 0 );
20 if ( next_id_save( be ) < 0 ) {
21 Debug( LDAP_DEBUG_ANY, "ldbm backend nextid save failed!\n", 0, 0, 0 );
24 Debug( LDAP_DEBUG_TRACE, "ldbm backend syncing\n", 0, 0, 0 );
25 ldbm_cache_flush_all( be );
26 Debug( LDAP_DEBUG_TRACE, "ldbm backend done syncing\n", 0, 0, 0 );
29 cache_release_all( &((struct ldbminfo *) be->be_private)->li_cache );