From: Quanah Gibson-Mount Date: Tue, 12 Sep 2017 17:09:44 +0000 (-0700) Subject: ITS#8527 - Add additional debug logging on consumer/provider state when the consumer... X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fd5ad3ef399dc281e78b06a36162a58a95518c34;p=openldap ITS#8527 - Add additional debug logging on consumer/provider state when the consumer has a newer cookie than the provider --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 18c2c6cf3c..72c9064ba3 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -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;