]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 17 Oct 2017 17:04:17 +0000 (10:04 -0700)
commit583715e6a3a7602cb27fdda98d3d72bbe0972694
tree7b8b5cbf9705993f2573d88de1fdc474c8e99dae
parent5f0636286b3490bf544274af2a46ce0744920571
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