From ec7a05adff6950aa58f8872d6819a99f9d66ee65 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 8 Oct 2007 06:19:50 +0000 Subject: [PATCH] Check for cleanup on Adds, not just Modifies --- servers/slapd/bconfig.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 64894df73a..0cf122727f 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -4313,6 +4313,8 @@ ok: rc = ca->bi->bi_db_open( ca->be, &ca->reply ); ca->be->bd_info = bi_orig; } + } else if ( ca->cleanup ) { + rc = ca->cleanup( ca ); } if ( rc ) { if (ca->cr_msg[0] == '\0') -- 2.39.5