ldb_kv_index: Make the edge keys slightly cleaner and generic
authorGarming Sam <garming@catalyst.net.nz>
Thu, 4 Apr 2019 01:36:08 +0000 (14:36 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 8 Apr 2019 02:07:22 +0000 (02:07 +0000)
commita894515229f1edc3f07ea08faafdbfba16cf32ff
tree2c26e255a3ca861ffa87e68324d94a1aa3704aec
parent9b3021b8d6b963c5023cc16b9f764707fdbcafbc
ldb_kv_index: Make the edge keys slightly cleaner and generic

It makes no difference in our standard case because \0 will always go
before any value for our index_format_fn, but this is better for
correctness (in case we do mess up our NUL terminations elsewhere).

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