tiny icon indicating copy to clipboard operation
tiny copied to clipboard

when used count query done function never call

Open ihteandr opened this issue 11 years ago • 0 comments

line 1245 to 1258, return parallel(keys, function(docKey, next) { if (filter.length >= 3) { return filter(cache[docKey], docKey, function(match) { if (match) results++; return next(); }); } if (filter(cache[docKey], docKey) === true) { results++; } return next(); }); return done(null, results); after first return parallel done function never call, because parallel function already returned when call db.find({}).count()(function(){})

ihteandr avatar Nov 10 '14 04:11 ihteandr