mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
address ITS#4332; might remove dynamicObject counting
This commit is contained in:
parent
e720c15c4d
commit
72d2ee4d19
@ -1723,6 +1723,8 @@ dds_db_open(
|
||||
di->di_suffix = be->be_suffix;
|
||||
di->di_nsuffix = be->be_nsuffix;
|
||||
|
||||
/* ... so that count, if required, is accurate */
|
||||
if ( di->di_max_dynamicObjects > 0 ) {
|
||||
/* force deletion of expired entries... */
|
||||
be->bd_info = (BackendInfo *)on->on_info;
|
||||
rc = dds_expire( thrctx, di );
|
||||
@ -1732,8 +1734,6 @@ dds_db_open(
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* ... so that count, if required, is accurate */
|
||||
if ( di->di_max_dynamicObjects > 0 ) {
|
||||
rc = dds_count( thrctx, be );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
rc = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user