ITS#7040 don't complain about other server's CSNs

Only worry if consumer has newer state for our SID. Fixes breakage
caused by ITS#6606.
This commit is contained in:
Howard Chu 2011-09-30 03:04:10 -07:00
parent 3ca52e4f94
commit da210f40e1

View file

@ -2583,7 +2583,7 @@ syncprov_op_search( Operation *op, SlapReply *rs )
mincsn = srs->sr_state.ctxcsn[i];
minsid = sids[j];
}
} else if ( newer > 0 ) {
} else if ( newer > 0 && sids[j] == slap_serverID ) {
/* our state is older, complain to consumer */
rs->sr_err = LDAP_UNWILLING_TO_PERFORM;
rs->sr_text = "consumer state is newer than provider!";