]> git.sur5r.net Git - openldap/commitdiff
If dn2id returns ID but id2entry returns NULL, log it.
authorKurt Zeilenga <kurt@openldap.org>
Sat, 23 Jan 1999 19:33:53 +0000 (19:33 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 23 Jan 1999 19:33:53 +0000 (19:33 +0000)
Assume entry was deleted from underneath the dn2entry call,  hence
processing is same as if NOID had been returned.

servers/slapd/back-ldbm/dn2id.c

index d540fc4d64e96b0e22ed7403ecbb87736d2fa3ff..683d30a2e56c4019e6c484bb812c0d6d140790ab 100644 (file)
@@ -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 );