]> git.sur5r.net Git - openldap/commitdiff
Tweak online_index task interval
authorHoward Chu <hyc@openldap.org>
Sat, 23 Apr 2005 16:58:23 +0000 (16:58 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 23 Apr 2005 16:58:23 +0000 (16:58 +0000)
servers/slapd/back-bdb/config.c

index 6db61b2c4949ef1c38299e02faaa140c65580a4d..6a396236c6a99f561f9c61e563fbcd06b6547e90 100644 (file)
@@ -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 );
                }