ldb: Remove comment that no longer makes sense
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 10 Jan 2019 00:53:47 +0000 (13:53 +1300)
committerStefan Metzmacher <metze@samba.org>
Wed, 13 Feb 2019 10:41:10 +0000 (11:41 +0100)
This comment was written before the GUID_index_attribute block of code
existed. So we now *do* load the index values and *do* check for a
strict intersect, so the comment is redundant.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13762

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 72928444823c5b18ac9ef98e7432c999d70aa571)

lib/ldb/ldb_key_value/ldb_kv_index.c

index 2ada48d084025f11f2c853ff194479c7823147ca..9c65b6fb92a68afd4aaf5b0f1e5105c9b58270bf 100644 (file)
@@ -2008,11 +2008,6 @@ int ldb_kv_search_indexed(struct ldb_kv_context *ac, uint32_t *match_count)
                return ldb_operr(ldb);
 
        case LDB_SCOPE_ONELEVEL:
-               /*
-                * If we ever start to also load the index values for
-                * the tree, we must ensure we strictly intersect with
-                * this list, as we trust the ONELEVEL index
-                */
                ret = ldb_kv_index_dn_one(ac->module,
                                          ldb_kv,
                                          ac->base,