summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_tdb/ldb_index.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-10-28 03:43:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:45:23 -0500
commitd812957a3162d37ec355b2e2673f3e7297626da7 (patch)
tree3eb7ff530a973de07f8dbaed9a09e24a54a26760 /source4/lib/ldb/ldb_tdb/ldb_index.c
parent56576de528db2b2029ee7d32e515a2edbad147a1 (diff)
downloadsamba-d812957a3162d37ec355b2e2673f3e7297626da7.tar.gz
samba-d812957a3162d37ec355b2e2673f3e7297626da7.tar.bz2
samba-d812957a3162d37ec355b2e2673f3e7297626da7.zip
r11353: a bit of an improvement to the ldb_tdb error handling
(This used to be commit 896704f5c139c8bce30dfc898bb3a12be10035ed)
Diffstat (limited to 'source4/lib/ldb/ldb_tdb/ldb_index.c')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_index.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_index.c b/source4/lib/ldb/ldb_tdb/ldb_index.c
index 275aadbd78..093b0dab1d 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_index.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_index.c
@@ -1119,14 +1119,12 @@ int ltdb_reindex(struct ldb_module *module)
/* first traverse the database deleting any @INDEX records */
ret = tdb_traverse(ltdb->tdb, delete_index, NULL);
if (ret == -1) {
- errno = EIO;
return -1;
}
/* now traverse adding any indexes for normal LDB records */
ret = tdb_traverse(ltdb->tdb, re_index, module);
if (ret == -1) {
- errno = EIO;
return -1;
}