fixed one-level indexing
authorAndrew Tridgell <tridge@samba.org>
Thu, 28 May 2009 06:10:47 +0000 (16:10 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 28 May 2009 06:10:47 +0000 (16:10 +1000)
commit0a0d760704ad17f5f43ffc1782ad4d84f75de5a2
tree0864e91e35706f0f43c96768323b58e2acb7b0c1
parent52cfffb8cba92e272224febd3d8df68b93e29bc7
fixed one-level indexing

one-level indexing was not always effective due to some broken logic
in the indexing code. This change means that if normal indexing fails,
we can still fall back on one-level indexing.

This reduces the number of full unindexed searches in s4 quite a lot
source4/lib/ldb/ldb_tdb/ldb_index.c