ldb: only used a->syntax->index_format_fn if GUID indexing is enabled
authorAaron Haslett <aaronhaslett@catalyst.net.nz>
Tue, 28 May 2019 01:00:43 +0000 (13:00 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 29 May 2019 04:41:24 +0000 (04:41 +0000)
commit6005c8cbad77259fa3cb89ab21cb5f26b72413cd
tree5a363c85abee233b5b6b4957f6b045786c547399
parent74d15c9bf76f0a2fb5fa7b7b1d80971d10c4fe45
ldb: only used a->syntax->index_format_fn if GUID indexing is enabled

Only enable ORDERED_INTEGER and index_format_fn functionality if GUID
indexing is enabled.  This is in line with the rest of ldb_kv which binds
the new ORDERED_INTEGER to GUID indexed databases, and allows a practical
way to create the old index format (by disabling the GUID index).

Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
lib/ldb/ldb_key_value/ldb_kv_index.c