1998-08-08 20:43:13 -04:00
|
|
|
/* close.c - close ldbm backend */
|
1999-09-08 15:06:24 -04:00
|
|
|
/* $OpenLDAP$ */
|
1999-08-06 19:07:46 -04:00
|
|
|
/*
|
2000-05-12 22:47:56 -04:00
|
|
|
* Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
|
1999-08-06 19:07:46 -04:00
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
|
*/
|
1998-08-08 20:43:13 -04:00
|
|
|
|
1998-10-24 21:41:42 -04:00
|
|
|
#include "portable.h"
|
|
|
|
|
|
1998-08-08 20:43:13 -04:00
|
|
|
#include <stdio.h>
|
1998-10-24 21:41:42 -04:00
|
|
|
|
|
|
|
|
#include <ac/socket.h>
|
|
|
|
|
|
1998-08-08 20:43:13 -04:00
|
|
|
#include "slap.h"
|
|
|
|
|
#include "back-ldbm.h"
|
|
|
|
|
|
1999-02-05 04:03:47 -05:00
|
|
|
int
|
|
|
|
|
ldbm_back_db_close( Backend *be )
|
1998-08-08 20:43:13 -04:00
|
|
|
{
|
|
|
|
|
Debug( LDAP_DEBUG_TRACE, "ldbm backend syncing\n", 0, 0, 0 );
|
|
|
|
|
ldbm_cache_flush_all( be );
|
|
|
|
|
Debug( LDAP_DEBUG_TRACE, "ldbm backend done syncing\n", 0, 0, 0 );
|
1999-02-05 04:03:47 -05:00
|
|
|
|
1999-04-05 21:55:11 -04:00
|
|
|
cache_release_all( &((struct ldbminfo *) be->be_private)->li_cache );
|
|
|
|
|
|
1999-02-05 04:03:47 -05:00
|
|
|
return 0;
|
1998-08-08 20:43:13 -04:00
|
|
|
}
|