]> git.sur5r.net Git - openldap/commit
ITS#8752 fix syncrepl deadlock from updateCookie
authorHoward Chu <hyc@openldap.org>
Fri, 13 Oct 2017 16:25:29 +0000 (17:25 +0100)
committerHoward Chu <hyc@openldap.org>
Fri, 13 Oct 2017 16:28:57 +0000 (17:28 +0100)
commit0d7489b9089c8cb5766cc689d8c414f166b4d84e
tree835dbf98ba9cf8241fbf9e7da97f3a1eebbff89d
parent4a574324fd8c35c9ceffecd149bb14ab84b59a85
ITS#8752 fix syncrepl deadlock from updateCookie

Must release cookieState->cs_mutex before invoking backend.
Add a condvar to serialize calls of updateCookie, so we can
release the mutex and still update sequentially.

Also added tid logging, useful in conjunction with
7ab0e1aff0cc48cdfb299ca7dbd27900a9e3d1a8
servers/slapd/syncrepl.c