]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-bdb/idl.c
ITS#8868 don't convert IDL to range needlessly
[openldap] / servers / slapd / back-bdb / idl.c
index c8901431b24cead55a204752c5e52536ba433e8d..fec46e68051cd487a01df7ceb2f504f9a5b04428 100644 (file)
@@ -1085,18 +1085,11 @@ bdb_idl_intersection(
        }
 
        /* If a range completely covers the list, the result is
-        * just the list. If idmin to idmax is contiguous, just
-        * turn it into a range.
+        * just the list.
         */
        if ( BDB_IDL_IS_RANGE( b )
                && BDB_IDL_RANGE_FIRST( b ) <= BDB_IDL_FIRST( a )
                && BDB_IDL_RANGE_LAST( b ) >= BDB_IDL_LLAST( a ) ) {
-               if (idmax - idmin + 1 == a[0])
-               {
-                       a[0] = NOID;
-                       a[1] = idmin;
-                       a[2] = idmax;
-               }
                goto done;
        }