mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 17:19:43 -05:00
Tweak online_index task interval
This commit is contained in:
parent
2d06c4fe2d
commit
173330187e
1 changed files with 4 additions and 2 deletions
|
|
@ -557,8 +557,10 @@ bdb_cf_gen(ConfigArgs *c)
|
|||
|
||||
if( rc != LDAP_SUCCESS ) return 1;
|
||||
if (( bdb->bi_flags & BDB_IS_OPEN ) && !bdb->bi_index_task ) {
|
||||
/* Start the task as soon as we finish here */
|
||||
bdb->bi_index_task = ldap_pvt_runqueue_insert( &slapd_rq, 60,
|
||||
/* Start the task as soon as we finish here. Set a long
|
||||
* interval (10 hours) so that it only gets scheduled once.
|
||||
*/
|
||||
bdb->bi_index_task = ldap_pvt_runqueue_insert( &slapd_rq, 36000,
|
||||
bdb_online_index, c->be,
|
||||
LDAP_XSTRING(bdb_online_index), c->be->be_suffix[0].bv_val );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue