diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-01-07 10:11:10 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-01-08 13:03:03 +1100 |
commit | fdf12a607d4da368bcbb8d4379b6ea38cbfdbce6 (patch) | |
tree | 2f21e94b11672f8115184b37c7a32758c81375b9 /source4/lib/ldb/ldb_tdb/ldb_tdb.c | |
parent | c4fa4d116264f661d9eaddc6c4e430de476cff83 (diff) | |
download | samba-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.c | 3 |
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); } |