1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

ldb_tdb: Remove incorrect early return from re-index

The ltdb->cache->attribute_indexes test is not correct with the GUID index mode
so for consistency remove it.  This will make re-index on a large un-indexed
database slower, but that is better than making the wrong choice on a large
GUID-indexed database.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
Andrew Bartlett 2017-09-11 11:49:02 +12:00
parent 0503f0984a
commit c71ddab974

View File

@ -2496,11 +2496,6 @@ int ltdb_reindex(struct ldb_module *module)
return LDB_ERR_OPERATIONS_ERROR; return LDB_ERR_OPERATIONS_ERROR;
} }
/* if we don't have indexes we have nothing todo */
if (!ltdb->cache->attribute_indexes) {
return LDB_SUCCESS;
}
ctx.module = module; ctx.module = module;
ctx.error = 0; ctx.error = 0;