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:
parent
c4f35462e9
commit
ba762fac81
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user