]> git.sur5r.net Git - openldap/commitdiff
ITS#8527 - Add additional debug logging on consumer/provider state when the consumer...
authorQuanah Gibson-Mount <quanah@openldap.org>
Tue, 12 Sep 2017 17:09:44 +0000 (10:09 -0700)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 11 Oct 2017 21:32:25 +0000 (14:32 -0700)
servers/slapd/overlays/syncprov.c

index 18c2c6cf3c928e27df9a4ea18f2a9a1ff14ebe08..72c9064ba35a9f15a5c40f31cc6d8cc5c5bbe501 100644 (file)
@@ -2656,6 +2656,10 @@ syncprov_op_search( Operation *op, SlapReply *rs )
                        /* our state is older, complain to consumer */
                                rs->sr_err = LDAP_UNWILLING_TO_PERFORM;
                                rs->sr_text = "consumer state is newer than provider!";
+                               Log4( LDAP_DEBUG_SYNC, ldap_syslog_level,
+                                       "consumer %d state %s is newer than provider %d state %s\n",
+                                       sids[i], srs->sr_state.ctxcsn[i].bv_val, sids[j], /* == slap_serverID */
+                                       ctxcsn[j].bv_val);
 bailout:
                                if ( sop ) {
                                        syncops **sp = &si->si_ops;