[PATCH] avoid sleeping after rebinding an LDAP search request
Gerald (Jerry) Carter
jerry at samba.org
Wed Mar 8 21:46:50 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Guenther Deschner wrote:
> attached patch improves our behaviour when we have search referrals (esp.
> in-directory referrals); we always applied our replication sleep mechanism
> after rebinding a simple search query. We only ever need to sleep after
> writing to LDAP. Correct ?
Yes. That sounds right to me. The LDAP_REQ_EXTENDED is probably
not always needed in the strictest sense but unless you are hard coding
checks for specific ext_ops it's probably good enough.
The patch looks good to me. I assume (without really looking closely
into the original code) that a last rebind_time time of 0 disables
the sleep() ?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the samba-technical