From: Kurt Zeilenga Date: Sat, 23 Jan 1999 19:33:53 +0000 (+0000) Subject: If dn2id returns ID but id2entry returns NULL, log it. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~711 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4194c3ee8575505e50a3245c03832aacc65b073d;p=openldap If dn2id returns ID but id2entry returns NULL, log it. Assume entry was deleted from underneath the dn2entry call, hence processing is same as if NOID had been returned. --- diff --git a/servers/slapd/back-ldbm/dn2id.c b/servers/slapd/back-ldbm/dn2id.c index d540fc4d64..683d30a2e5 100644 --- a/servers/slapd/back-ldbm/dn2id.c +++ b/servers/slapd/back-ldbm/dn2id.c @@ -177,6 +177,14 @@ dn2entry( return( e ); } + if ( id != NOID ) { + Debug(LDAP_DEBUG_ANY, + "dn2entry_%s: no entry for valid id (%lu), dn \"%s\"\n", + rw ? "w" : "r", id, dn); + /* must have been deleted from underneath us */ + /* treat as if NOID was found */ + } + /* stop when we get to the suffix */ if ( be_issuffix( be, dn ) ) { return( NULL );