summaryrefslogtreecommitdiffstats
path: root/ldap
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2009-08-20 10:31:13 -0700
committerRich Megginson <rmeggins@redhat.com>2009-08-20 12:02:19 -0600
commit45306cbaf119931b04d3a01fbf4dae5204de9fe1 (patch)
tree81f72a8ab10c8bdb6d515a7aa15dcddc79ad7b93 /ldap
parent7e1f83c8cf4aad5910f7a14a1c86f2380efb836b (diff)
downloadds-45306cbaf119931b04d3a01fbf4dae5204de9fe1.tar.gz
ds-45306cbaf119931b04d3a01fbf4dae5204de9fe1.tar.xz
ds-45306cbaf119931b04d3a01fbf4dae5204de9fe1.zip
509472 db2index all does not reindex all the db backends correctly
The commit a26ba73fb5040383c27872997bc07ab0c2006459 made to fix the bug 509472 put the assertion at the wrong place. It should be applied just for the worker thread.
Diffstat (limited to 'ldap')
-rw-r--r--ldap/servers/slapd/back-ldbm/import.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/ldap/servers/slapd/back-ldbm/import.c b/ldap/servers/slapd/back-ldbm/import.c
index 8c334d43..76067391 100644
--- a/ldap/servers/slapd/back-ldbm/import.c
+++ b/ldap/servers/slapd/back-ldbm/import.c
@@ -106,11 +106,13 @@ FifoItem *import_fifo_fetch(ImportJob *job, ID id, int worker)
return NULL;
}
if (fi->entry) {
- if (worker && fi->bad) {
- import_log_notice(job, "WARNING: bad entry: ID %d", id);
- return NULL;
+ if (worker) {
+ if (fi->bad) {
+ import_log_notice(job, "WARNING: bad entry: ID %d", id);
+ return NULL;
+ }
+ PR_ASSERT(fi->entry->ep_refcnt > 0);
}
- PR_ASSERT(fi->entry->ep_refcnt > 0);
}
return fi;
}