mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
improve last commit
This commit is contained in:
parent
e24f55b29a
commit
95b115394d
@ -279,15 +279,15 @@ slap_tool_init(
|
|||||||
exit( EXIT_FAILURE );
|
exit( EXIT_FAILURE );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( nosubordinates == 0 ) {
|
if ( nosubordinates == 0 && dbnum > 0 ) {
|
||||||
#ifdef NEW_LOGGING
|
#ifdef NEW_LOGGING
|
||||||
LDAP_LOG( BACKEND, ERR,
|
LDAP_LOG( BACKEND, ERR,
|
||||||
"The first database does not allow %s; using the first available one\n",
|
"The first database does not allow %s; using the first available one (%d)\n",
|
||||||
name, 0, 0 );
|
name, (int)(be - &backends[0]) + 1, 0 );
|
||||||
#else
|
#else
|
||||||
Debug( LDAP_DEBUG_ANY,
|
Debug( LDAP_DEBUG_ANY,
|
||||||
"The first database does not allow %s; using the first available one\n",
|
"The first database does not allow %s; using the first available one (%d)\n",
|
||||||
name, 0, 0 );
|
name, (int)(be - &backends[0]) + 1, 0 );
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user