ldb: Reject a possible future ldb_mdb with the index in a sub-database
authorAndrew Bartlett <abartlet@samba.org>
Fri, 18 May 2018 19:10:15 +0000 (07:10 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 23 May 2018 00:27:12 +0000 (02:27 +0200)
commitcb5da7a5c610875297a90be7f0b8bcde620990f1
tree632e6629a0c87d97c0e009682e4bbef4018ad47c
parent866af3270db8076898fb69bddd6f3699cac9e263
ldb: Reject a possible future ldb_mdb with the index in a sub-database

This ensures we do not corrupt such an index by making changes to the
main database without knowing that the index values are now in a
sub-database.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
lib/ldb/ldb_tdb/ldb_cache.c
lib/ldb/ldb_tdb/ldb_tdb.h
lib/ldb/tests/python/index.py