[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#3648) ldbm hangs during shutdown
Villy Kruse wrote:
> On Mon, 11 Apr 2005, Howard Chu wrote:
> > Interesting. Probably the best way to fix this is to change this
> > code to use the slapd runqueue instead of spawning its own thread.
>
> Doing that may also fix another little problem: If for example the
> sync interval is 30 seconds it may take up to 30 seconds to shut down
> slapd as it will wait until the sleep in the sync daemon returns.
> The same delay also affects slapcat and slapadd if I'm not mistaken.
This is now fixed in HEAD. The new code checks to see if the process is
running in server mode before doing anything, so the slap tools will no
longer have any problem. The code can probably be made to work in 2.2,
with the note that in 2.2 the runqueue was called syncrepl_rq, and in
2.3 it is called slapd_rq.
--
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
http://www.symas.com http://highlandsun.com/hyc
Symas: Premier OpenSource Development and Support