mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
ITS#4833 fix olcDatabase index offset
This commit is contained in:
parent
b278a8967a
commit
4642c21f65
@ -4003,8 +4003,11 @@ check_name_index( CfEntryInfo *parent, ConfigType ce_type, Entry *e,
|
|||||||
renumber = 1;
|
renumber = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( !isfrontend && index == -1 )
|
if ( !isfrontend && index == -1 ) {
|
||||||
index = nsibs;
|
index = nsibs;
|
||||||
|
if ( ce_type == Cft_Database )
|
||||||
|
index--;
|
||||||
|
}
|
||||||
|
|
||||||
/* just make index = nsibs */
|
/* just make index = nsibs */
|
||||||
if ( !renumber ) {
|
if ( !renumber ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user