[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#6503) syncrepl provider sends entryUUIDs of all LDAP records to consumer when consumer slapd is started
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#6503) syncrepl provider sends entryUUIDs of all LDAP records to consumer when consumer slapd is started
- From: hyc@symas.com
- Date: Mon, 12 Apr 2010 01:37:25 GMT
- Auto-submitted: auto-generated (OpenLDAP-ITS)
bcolston@xtec.com wrote:
> Provider slapd configuration (partial):
> serverID 000
> database bdb
> suffix "dc=authentx"
> rootdn "SUPPRESSED"
> rootpw SUPPRESSED
> directory /authentx/db/ldap/authentx-sync1
>
> overlay syncprov
> syncprov-checkpoint 100 15
> syncprov-sessionlog 5000
This patch will probably work:
diff -u -r1.309 syncprov.c
--- syncprov.c 21 Jan 2010 12:33:21 -0000 1.309
+++ syncprov.c 12 Apr 2010 01:33:02 -0000
@@ -1878,7 +1878,7 @@
}
/* Add any log records */
- if ( si->si_logs && op->o_tag != LDAP_REQ_ADD ) {
+ if ( si->si_logs ) {
syncprov_add_slog( op );
}
leave: ldap_pvt_thread_mutex_unlock( &si->si_resp_mutex );
But I have not tested it. The session log was originally only intended to
record deletes, since they require the most work to find otherwise. Recording
adds is just a shortcut since the original behavior works as designed.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/