From d4757e170bf56a212ba8e8caf1658ec598913f49 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Tue, 15 Mar 2011 16:26:05 +0000 Subject: [PATCH] removing global overlays should work now as well --- servers/slapd/bconfig.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 1a4cdccbb0..123cfa1d38 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -6187,14 +6187,7 @@ config_back_delete( Operation *op, SlapReply *rs ) ldap_pvt_thread_pool_pause( &connection_pool ); if ( ce->ce_type == Cft_Overlay ){ - if ( SLAP_ISGLOBALOVERLAY(ce->ce_be ) ) { - rs->sr_err = LDAP_UNWILLING_TO_PERFORM; - rs->sr_text = "Cannot delete global overlays"; - ldap_pvt_thread_pool_resume( &connection_pool ); - goto out; - } else { - overlay_remove( ce->ce_be, (slap_overinst *)ce->ce_bi, op ); - } + overlay_remove( ce->ce_be, (slap_overinst *)ce->ce_bi, op ); } else { /* Cft_Database*/ if ( ce->ce_be == frontendDB || ce->ce_be == op->o_bd ){ rs->sr_err = LDAP_UNWILLING_TO_PERFORM; -- 2.39.5