18 June 2007: Wouter
- same, move subqueries to slumber list when first has resolved.
- fixup last fix for duplicate callbacks.
+ - another offbyone in targetcounter. Also in Java prototype by the way.
15 June 2007: Wouter
- if a query asks to be notified of the same serviced query result
int query_count = 0;
int target_count = 0;
struct delegpt_ns* ns = iq->dp->nslist;
+ log_assert(maxtargets != 0); /* that would not be useful */
/* Generate target requests. Basically, any missing targets
* are queried for here, regardless if it is necessary to do
/* if maxtargets is negative, there is no maximum,
* otherwise only query for ntarget names. */
- if(maxtargets >= 0 && ++target_count > maxtargets)
+ if(maxtargets >= 0 && ++target_count >= maxtargets)
break;
}
*num = query_count;