From d34473cdba9d733d43c64d6781041cce04b93d0d Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 9 Jun 2007 14:11:16 +0000 Subject: [PATCH] always complain when custom monitor stuff cannot be registered (ITS#4965) --- servers/slapd/back-monitor/init.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-monitor/init.c b/servers/slapd/back-monitor/init.c index 40c526256c..00edb2f561 100644 --- a/servers/slapd/back-monitor/init.c +++ b/servers/slapd/back-monitor/init.c @@ -2140,6 +2140,8 @@ monitor_back_db_open( " attributes, which must be explicitly requested."), BER_BVNULL }; + int retcode = 0; + assert( be_monitor != NULL ); if ( be != be_monitor ) { be_monitor = be; @@ -2410,12 +2412,17 @@ monitor_back_db_open( tmp = el; el = el->el_next; ch_free( tmp ); + + if ( rc != 0 ) { + /* try all, but report error at end */ + retcode = 1; + } } mi->mi_entry_limbo = NULL; } - return( 0 ); + return retcode; } int -- 2.39.5