1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

ldb_tdb: Do not add an index for GUID_index_attribute

This would be pointless and we no longer query for it.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
Andrew Bartlett 2017-08-17 12:44:34 +12:00
parent c4f35462e9
commit ba762fac81

View File

@ -629,6 +629,12 @@ static bool ltdb_is_indexed(struct ldb_module *module,
unsigned int i;
struct ldb_message_element *el;
if ((ltdb->cache->GUID_index_attribute != NULL) &&
(ldb_attr_cmp(attr,
ltdb->cache->GUID_index_attribute) == 0)) {
/* Implicity covered, this is the index key */
return false;
}
if (ldb->schema.index_handler_override) {
const struct ldb_schema_attribute *a
= ldb_schema_attribute_by_name(ldb, attr);