[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-----
Hash: SHA1
Guenther Deschner wrote:
> Hi,
>
> 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() ?
jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFED1DKIR7qMdg1EfYRAqyVAKDdk6iUjzHeliyXBPW4blPZRmI2uQCbBYcd
D31r978fHCwX/BtB5y2S49s=
=1M1E
-----END PGP SIGNATURE-----
More information about the samba-technical
mailing list