ldb_tdb: Add helper function ltdb_search_and_return_base()
authorAndrew Bartlett <abartlet@samba.org>
Tue, 15 Aug 2017 05:21:28 +0000 (17:21 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 22 Sep 2017 19:20:20 +0000 (21:20 +0200)
commitcd8ecb3332b1939a07c3455ec3a66ca3d23bb32d
tree436c57d850ff8c6b20c3a4525bd9c773eab5f4a9
parentd8a22884c1089f35e6df111c1f3f65b0848a1438
ldb_tdb: Add helper function ltdb_search_and_return_base()

This avoids an extra DB lookup for the base, when that is the only
record we will return, and avoids going into the index code for
a base search, as that won't work for special DNs once the GUID
index mode is enabled.

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