From 1afb2c8e6e0321b78425b18ed02bf6c33fdf7306 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 13 Apr 2005 06:56:26 +0000 Subject: [PATCH] Store modification in back-ldif --- servers/slapd/bconfig.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index fd2f8c43a7..28b74d8d10 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -3721,6 +3721,16 @@ config_back_modify( Operation *op, SlapReply *rs ) * 4) store Modified entry in underlying LDIF backend. */ rs->sr_err = config_modify_internal( ce, op, rs, textbuf, sizeof(textbuf) ); + if ( rs->sr_err == LDAP_SUCCESS ) { + BackendDB *be = op->o_bd; + slap_callback sc = { NULL, slap_null_cb, NULL, NULL }; + op->o_bd = &cfb->cb_db; + sc.sc_next = op->o_callback; + op->o_callback = ≻ + op->o_bd->be_modify( op, rs ); + op->o_bd = be; + op->o_callback = sc.sc_next; + } ldap_pvt_thread_pool_resume( &connection_pool ); out: -- 2.39.5