]> git.sur5r.net Git - openldap/commitdiff
Cleanup prev commit
authorHoward Chu <hyc@openldap.org>
Wed, 19 Jan 2005 06:43:33 +0000 (06:43 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 19 Jan 2005 06:43:33 +0000 (06:43 +0000)
servers/slapd/back-bdb/idl.c

index 0022e401f6b7075d6b03f1e4a5bc28a6f2ebca33..b97368677e2346bebe484230e2ff5e633d8048e1 100644 (file)
@@ -726,12 +726,12 @@ bdb_idl_insert_key(
                                /* Delete all the records between lo and hi */
                                for ( i=2; i<count; i++ ) {
                                        rc = cursor->c_get( cursor, &key2, &data, DB_NEXT_DUP | DB_RMW );
-                                       if ( rc != 0 && rc != DB_NOTFOUND ) {
+                                       if ( rc != 0 ) {
                                                err = "c_get next_dup";
                                                goto fail;
                                        }
                                        rc = cursor->c_del( cursor, 0 );
-                                       if ( rc != 0 && rc != DB_NOTFOUND ) {
+                                       if ( rc != 0 ) {
                                                err = "c_del range";
                                                goto fail;
                                        }