[Date Prev][Date Next] [Chronological] [Thread] [Top]

slurpd private replication file trim question



Looking at current slurpd implementation and I'm wondering how it
is that slurpd's private copy (ie. /usr/tmp/replica/slurpd.replog) 
of the replication log gets truncated?  It seems to use:

slurp.h:    int  (*rq_needtrim) LDAP_P(( Rq * )); /* see if queue needs
trimming */

So is it when a new job comes in to the slapd replog slurpd reads it into
it's queue and enventually if this queue is big enough then the slurpd
queue get's trimmed?

Any info is appreciated. 

Thanks,
Tomas

REF:
/*
 * Main file manager routine.  Watches for new data to be appended to the
 * slapd replication log.  When new data is appended, fm does the following:
 *  - appends the data to slurpd's private copy of the replication log.
 *  - truncates the slapd replog
 *  - adds items to the internal queue of replication work to do
 *  - signals the replication threads to let them know new work has arrived.
 */
void *
fm(
    void *arg
)
{


Tomás V. Arredondo
Member of Technical Staff
Unisphere Networks
7800 Congress Ave., Suite 100, Boca Raton, Fl 33487
Tel.(561)981-7051, Fax.(561)981-7001
tarredondo@unispherenetworks.com