From: Pierangelo Masarati Date: Wed, 27 Oct 2004 11:34:27 +0000 (+0000) Subject: warn when using "replogfile" or "replica" inside monitor database X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~401 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fbe8243b8610d653d4e68892e9c8d9553b0cf6fc;p=openldap warn when using "replogfile" or "replica" inside monitor database --- diff --git a/servers/slapd/config.c b/servers/slapd/config.c index d2cb7e2bdc..c1f05a635e 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -1535,6 +1535,14 @@ restrict_unknown:; } else { int nr = -1; + if ( SLAP_MONITOR( be ) ) { + Debug( LDAP_DEBUG_ANY, "%s: line %d: " + "\"replica\" should not be used " + "inside monitor database\n", + fname, lineno, 0 ); + /* FIXME: turn into an error? */ + } + for ( i = 1; i < cargc; i++ ) { if ( strncasecmp( cargv[i], "host=", 5 ) == 0 ) { @@ -1711,7 +1719,15 @@ restrict_unknown:; return( 1 ); } if ( be ) { + if ( SLAP_MONITOR( be ) ) { + Debug( LDAP_DEBUG_ANY, "%s: line %d: " + "\"replogfile\" should not be used " + "inside monitor database\n", + fname, lineno, 0 ); + /* FIXME: turn into an error? */ + } be->be_replogfile = ch_strdup( cargv[1] ); + } else { replogfile = ch_strdup( cargv[1] ); }