]> git.sur5r.net Git - openldap/commitdiff
Add a debug message when skipping an old entry.
authorHoward Chu <hyc@openldap.org>
Tue, 6 Feb 2007 00:06:09 +0000 (00:06 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 6 Feb 2007 00:06:09 +0000 (00:06 +0000)
servers/slapd/syncrepl.c

index 7e72db64f41b8353a90590d1192bff60f60ba688..053f9d0ae0998aec6fc9cb8e25c4bb75fce42807 100644 (file)
@@ -2746,6 +2746,12 @@ dn_callback(
                                        slap_schema.si_ad_entryCSN );
                                if ( new && old && ber_bvcmp( &old->a_vals[0],
                                        &new->a_vals[0] ) >= 0 ) {
+                                       Debug( LDAP_DEBUG_SYNC,
+                                               "dn_callback : new entry is older than ours "
+                                               "%s ours %s, new %s\n",
+                                               rs->sr_entry->e_name.bv_val,
+                                               old->a_vals[0].bv_val,
+                                               new->a_vals[0].bv_val );
                                        return LDAP_SUCCESS;
                                }