1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/lib/ldb/include
Aaron Haslett 9b3021b8d6 ldb: <= and >= indexed searching
Full implementation of <= and >= indexed searching using iterate_range
backend operation.  Adds index_format_fn to ldb_schema_syntax so
requires an ABI version bump.  The function must be provided for any
type for which <= and >= indexing is required, and must return a
lexicographically ordered canonicalization of a value.  This causes
index entries to be written in correct order to the database, so
iterate_range on the index DNs can be used.

ldb_kv_index_key is modified to return an index DN with attribute name
but without value if an empty value is provided.  This is needed for
constructing keys that match the beginning or end of an index DN range.

Pair-programmed-with: Garming Sam <garming@catalyst.net.nz>

Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz>
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-04-08 02:07:22 +00:00
..
dlinklist.h Revert "ldb:dlinklist: avoid -Wtautological-compare errors with gcc6" 2016-07-15 00:54:12 +02:00
ldb_errors.h ldb: make ldb a top level library for Samba 4.0 2011-07-05 17:24:47 +10:00
ldb_handlers.h ldb: Expose ldb_handler_fold() funcion 2011-07-28 15:20:51 +10:00
ldb_module.h ldb: Ban ldb 1.4.x with Samba 4.8 and earlier 2018-07-12 04:32:08 +02:00
ldb_private.h ldb_tdb: Read from @INDEXLIST or an override if we are using a GUID index 2017-09-22 21:20:23 +02:00
ldb.h ldb: <= and >= indexed searching 2019-04-08 02:07:22 +00:00