This commit is contained in:
Mark Nadal 2020-01-07 18:18:35 -08:00
parent 2a450bf3cc
commit 05ba89888f

View File

@ -287,15 +287,21 @@
|| (!o.span && last && last > key && 0 != last.indexOf(key)) // 'zach' may be lexically larger than 'za', but there still might be more, like 'zane' in the 'za' prefix bucket so do not end here.
){
o.more = u;
var S = +new Date;
as.ack(g.err, data, o);
LOG && opt.log(S, +new Date - S, 'rad range ack');
return
}
if(u !== data){
var S = +new Date;
as.ack(g.err, data, o); // more might be coming!
LOG && opt.log(S, +new Date - S, 'rad range ack.');
if(o.parsed >= o.limit){ return } // even if more, we've hit our limit, asking peer will need to make a new ask with a new starting point.
}
o.next = as.file;
var S = +new Date;
r.read(key, as.ack, o);
LOG && opt.log(S, +new Date - S, 'rad range read again');
}
if(o.reverse){ g.lex.reverse = true }
LOG && (S = +new Date);