1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/lib/ldb/ldb_tdb
Andrew Bartlett 2d0007ee5a ldb_tdb: Do not trigger the unique index check during a re-index, use another pass
We want to rename the objects, then scan looking for the index values.

This avoids a DB modify during the index scan traverse (the index values
are actually added to an in-memory TDB, written in prepare_commit()).

This allows us to remove the "this might already exist" case in the
index handling, we now know that the entry did not exist in the index
before we add it.

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

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2017-09-07 06:56:26 +02:00
..
ldb_cache.c ldb_tdb: Avoid reading the index list from the DB if we are already set to override it 2017-05-31 06:34:26 +02:00
ldb_index.c ldb_tdb: Do not trigger the unique index check during a re-index, use another pass 2017-09-07 06:56:26 +02:00
ldb_search.c ldb_tdb: Remove unused function ltdb_add_attr_results 2017-04-19 15:46:25 +02:00
ldb_tdb_wrap.c ldb: use tdb directly, not tdb_compat. 2012-06-19 05:38:07 +02:00
ldb_tdb.c ldb_tdb: Rework ltdb_modify_internal() to use ltdb_search_dn1() internally 2017-08-29 11:13:50 +02:00
ldb_tdb.h ldb_tdb: Remove unused function ltdb_add_attr_results 2017-04-19 15:46:25 +02:00