From: Howard Chu Date: Wed, 7 Feb 2007 16:00:03 +0000 (+0000) Subject: ITS#4833 fix olcDatabase index offset X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~47 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4642c21f65c32117158cffea29c9b9dadf629ff7;p=openldap ITS#4833 fix olcDatabase index offset --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index acd4dd853b..00f581e164 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -4003,8 +4003,11 @@ check_name_index( CfEntryInfo *parent, ConfigType ce_type, Entry *e, renumber = 1; } } - if ( !isfrontend && index == -1 ) + if ( !isfrontend && index == -1 ) { index = nsibs; + if ( ce_type == Cft_Database ) + index--; + } /* just make index = nsibs */ if ( !renumber ) {