[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: commit: ldap/servers/slapd connection.c
- To: OpenLDAP Commit <openldap-commit2devel@OpenLDAP.org>
- Subject: Re: commit: ldap/servers/slapd connection.c
- From: Howard Chu <hyc@symas.com>
- Date: Fri, 14 Jan 2005 08:04:45 -0800
- In-reply-to: <200501140108.j0E182si091234@cantor.openldap.org>
- References: <200501140108.j0E182si091234@cantor.openldap.org>
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a5) Gecko/20041101
hyc@OpenLDAP.org wrote:
Update of /repo/OpenLDAP/pkg/ldap/servers/slapd
Modified Files:
connection.c 1.303 -> 1.304
Log Message:
ITS#3463 additional fix
CVS Web URLs:
http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/
http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/connection.c
back-ldbm in HEAD appears to be rather unstable at the moment, and I'm
afraid that my changes in connection management are part of the problem.
I notice that if I turn the debug level up high, test002 fails. Looking
at the slapd.1.log, it appears that Add operations are still in progress
when the final ldapsearch is done to retrieve the full database
contents. This is really puzzling, it means that the ldapadd command
exited successfully already, but the operations it submitted hadn't
completed yet. With lower debug levels, the Adds complete quickly enough
to finish before the ldapsearch finishes. Otherwise, one to three
entries from the tail of the Add are missing from the search result.
This also seems to be causing test008 to fail. Also in test008, there is
garbage text appearing in the LDAP error text fields. I don't know what
it's leftover from...
The big problem here seems to be that back-ldbm calls send_ldap_result()
to tell the client its status before it actually finishes its internal
operations. So it can be in the middle of completing a cache update by
the time a new request arrives; this seems to explain what I'm seeing in
test002 at least.
--
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
http://www.symas.com http://highlandsun.com/hyc
Symas: Premier OpenSource Development and Support