summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_tdb/ldb_tdb.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-01-07 10:11:10 +1100
committerAndrew Tridgell <tridge@samba.org>2010-01-08 13:03:03 +1100
commitfdf12a607d4da368bcbb8d4379b6ea38cbfdbce6 (patch)
tree2f21e94b11672f8115184b37c7a32758c81375b9 /source4/lib/ldb/ldb_tdb/ldb_tdb.c
parentc4fa4d116264f661d9eaddc6c4e430de476cff83 (diff)
downloadsamba-fdf12a607d4da368bcbb8d4379b6ea38cbfdbce6.tar.gz
samba-fdf12a607d4da368bcbb8d4379b6ea38cbfdbce6.tar.bz2
samba-fdf12a607d4da368bcbb8d4379b6ea38cbfdbce6.zip
s4-ldb: improve error handling in indexing code
When we get an indexing failure we want a clear error message
Diffstat (limited to 'source4/lib/ldb/ldb_tdb/ldb_tdb.c')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_tdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.c b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
index a146b96b20..b8b4d399ef 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_tdb.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
@@ -230,7 +230,8 @@ static int ltdb_modified(struct ldb_module *module, struct ldb_dn *dn)
}
/* If the modify was to @OPTIONS, reload the cache */
- if (ldb_dn_is_special(dn) &&
+ if (ret == LDB_SUCCESS &&
+ ldb_dn_is_special(dn) &&
(ldb_dn_check_special(dn, LTDB_OPTIONS)) ) {
ret = ltdb_cache_reload(module);
}