lib/ldb: Use tdb_exists() rather than tdb_fetch()/talloc_free()
authorAndrew Bartlett <abartlet@samba.org>
Thu, 9 Aug 2012 09:58:31 +0000 (19:58 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 9 Aug 2012 10:14:22 +0000 (20:14 +1000)
commit299fc7522858e2d7ee6c54310a4e157c8142c74f
tree5b9e8a60d39cca4a2f4c8c2abe5ccee3c50ba8e3
parentd799b25dd3ed0f72ee03949225ba241c5538d7d6
lib/ldb: Use tdb_exists() rather than tdb_fetch()/talloc_free()

This avoids pulling the record and doing an allocation when we just
want to know if it exists.

Andrew Bartlett
lib/ldb/ldb_tdb/ldb_search.c