I wrote:
Also, possibly the rest of "ITS#6739 broken do_syncrep2()" is simple. Almost fixed.
If you get these committed, I can add them.
I've committed my part, but someone who knows syncrepl must do the rest.
OTOH... I've marked it Test, do import it. Just got reminded why I patched it, to fix this: CPPFLAGS=-DLDAP_THREAD_DEBUG ./configure ./run -b ldif test019 thr_debug fails because a thread unlocks another thread's mutex.