[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#6774) back-meta can send matchedDN with success

Full_Name: Hallvard B Furuseth
Version: HEAD
Submission from: (NULL) (
Submitted by: hallvard

With this patch (do not commit:-)

Index: servers/slapd/back-meta/search.c
@@ -1740,2 +1740,3 @@
 	rs->sr_ref = ( sres == LDAP_REFERRAL ? rs->sr_v2ref : NULL );
+	assert( rs->sr_err || !(rs->sr_text || rs->sr_matched ));
 	send_ldap_result( op, rs );

back-meta oftenfails with just
    env TESTLOOPS=1 TESTCHILDREN=1 ./run -b hdb test036-meta-concurrency

It passes the test if instead of the asser you use
    rs->sr_matched = ( sres == LDAP_SUCCESS ? NULL : matched );
but I have not looked into whether that cures the symptom or the bug.