summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_tdb/ldb_search.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-03-11 07:58:42 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-03-11 07:58:42 +1100
commit3d0a727f575942b767e396b694f6529259528a17 (patch)
tree8ea6acdfe1b043abe06a0f3d78dcbc1b55d6f146 /source4/lib/ldb/ldb_tdb/ldb_search.c
parentc218d3e1173355acf025471a10b4b6425b9c086b (diff)
parent3d280639c4652d6cd35577e333bcd46c2517754c (diff)
downloadsamba-3d0a727f575942b767e396b694f6529259528a17.tar.gz
samba-3d0a727f575942b767e396b694f6529259528a17.tar.bz2
samba-3d0a727f575942b767e396b694f6529259528a17.zip
Merge branch 'master' of ssh://git.samba.org/data/git/samba into wspp-schema
Diffstat (limited to 'source4/lib/ldb/ldb_tdb/ldb_search.c')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_search.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_search.c b/source4/lib/ldb/ldb_tdb/ldb_search.c
index 0f595267fc..d395c28f28 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_search.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_search.c
@@ -424,10 +424,10 @@ static int search_func(struct tdb_context *tdb, TDB_DATA key, TDB_DATA data, voi
ret = ldb_module_send_entry(ac->req, msg, NULL);
if (ret != LDB_SUCCESS) {
- ac->callback_failed = true;
+ ac->request_terminated = true;
/* the callback failed, abort the operation */
return -1;
- }
+ }
return 0;
}
@@ -544,7 +544,7 @@ int ltdb_search(struct ltdb_context *ctx)
/* Check if we got just a normal error.
* In that case proceed to a full search unless we got a
* callback error */
- if ( ! ctx->callback_failed && ret != LDB_SUCCESS) {
+ if ( ! ctx->request_terminated && ret != LDB_SUCCESS) {
/* Not indexed, so we need to do a full scan */
ret = ltdb_search_full(ctx);
if (ret != LDB_SUCCESS) {