From: Pierangelo Masarati Date: Tue, 4 Mar 2003 09:43:12 +0000 (+0000) Subject: improve last commit X-Git-Tag: NO_SLAP_OP_BLOCKS~190 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=95b115394d61ce2617e553fc1e90cc02995d0fa1;p=openldap improve last commit --- diff --git a/servers/slapd/tools/slapcommon.c b/servers/slapd/tools/slapcommon.c index 745f5dd7ff..8bb70bf7d9 100644 --- a/servers/slapd/tools/slapcommon.c +++ b/servers/slapd/tools/slapcommon.c @@ -279,15 +279,15 @@ slap_tool_init( exit( EXIT_FAILURE ); } - if ( nosubordinates == 0 ) { + if ( nosubordinates == 0 && dbnum > 0 ) { #ifdef NEW_LOGGING LDAP_LOG( BACKEND, ERR, -"The first database does not allow %s; using the first available one\n", - name, 0, 0 ); +"The first database does not allow %s; using the first available one (%d)\n", + name, (int)(be - &backends[0]) + 1, 0 ); #else Debug( LDAP_DEBUG_ANY, -"The first database does not allow %s; using the first available one\n", - name, 0, 0 ); +"The first database does not allow %s; using the first available one (%d)\n", + name, (int)(be - &backends[0]) + 1, 0 ); #endif }