summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2008-01-24 17:54:56 +0000
committerNathan Kinder <nkinder@redhat.com>2008-01-24 17:54:56 +0000
commit8ccabb1c7a14e377791c2d5be11540c8f54f4f89 (patch)
tree0de86f114893ae9ed32c440ad01dbfb3c270dfc1
parentec9124a3321fc584181a875ac385626f12ab2b30 (diff)
downloadds-8ccabb1c7a14e377791c2d5be11540c8f54f4f89.tar.gz
ds-8ccabb1c7a14e377791c2d5be11540c8f54f4f89.tar.xz
ds-8ccabb1c7a14e377791c2d5be11540c8f54f4f89.zip
Resolves: 429799
Summary: Allow import fifo to clear out all finished entries.
-rw-r--r--ldap/servers/slapd/back-ldbm/import-threads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap/servers/slapd/back-ldbm/import-threads.c b/ldap/servers/slapd/back-ldbm/import-threads.c
index aab8b9a3..add5170a 100644
--- a/ldap/servers/slapd/back-ldbm/import-threads.c
+++ b/ldap/servers/slapd/back-ldbm/import-threads.c
@@ -870,7 +870,7 @@ import_wait_for_space_in_fifo(ImportJob *job, size_t new_esize)
for ( i = 0, slot_found = 0 ; i < job->fifo.size ; i++ ) {
temp_ep = job->fifo.item[i].entry;
if (temp_ep) {
- if (temp_ep->ep_refcnt == 0 && temp_ep->ep_id < job->ready_ID) {
+ if (temp_ep->ep_refcnt == 0 && temp_ep->ep_id <= job->ready_ID) {
job->fifo.item[i].entry = NULL;
if (job->fifo.c_bsize > job->fifo.item[i].esize)
job->fifo.c_bsize -= job->fifo.item[i].esize;