r10522: finally got the locking working on solaris10. This adds a read lock on
authorAndrew Tridgell <tridge@samba.org>
Tue, 27 Sep 2005 01:26:34 +0000 (01:26 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:39:00 +0000 (13:39 -0500)
commit251aaafe3a9213118ac3a92def9ab2104c40d12a
treeb8f366f28924d5a095f37ae99a9e0eaac7217f56
parent691aff270bc2f0bfee0632d426e2f6ba06f69f89
r10522: finally got the locking working on solaris10. This adds a read lock on
the transaction lock in tdb_traverse_read(). This prevents a pattern
of locks which triggers the deadlock detection code in solaris10. I
suspect solaris10 is trying to prevent lock starvation by granting
locks in the order they were requested, which makes it much easier to
produce deadlocks.
(This used to be commit 54203aacd138c30826d54c5d9b6cc8d6e9e270f8)
source4/lib/tdb/common/traverse.c