added support for unique indexing in ldb
authorAndrew Tridgell <tridge@samba.org>
Mon, 1 Jun 2009 06:36:21 +0000 (16:36 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 1 Jun 2009 06:36:21 +0000 (16:36 +1000)
commit5a39817212aa34ef181e9ed72851b077ba088260
tree5c33a3cf7e4ddfe7ab5c244de001458ba27d2372
parentae1c2415e23b56db7ffb8dc96425a8588401b03d
added support for unique indexing in ldb

When a attribute is marked as LDB_ATTR_FLAG_UNIQUE_INDEX then attempts
to add a 2nd record that has the same attribute value for this
attribute as another record will fail.

This provides a much more efficient mechanism for ensuring that
attributes like objectGUID are unique
source4/lib/ldb/include/ldb.h
source4/lib/ldb/ldb_tdb/ldb_index.c