Ticket #378: patch
File patch, 741 bytes (added by , 16 years ago) |
---|
-
matcher/multiandpostlist.cc
194 194 return NULL; 195 195 } 196 196 did = plist[0]->get_docid(); 197 Xapian::weight max_remaining = max_total - (max_wt[0] - plist[0]->get_weight()); 197 198 for (size_t i = 1; i < n_kids; ++i) { 199 if (max_remaining < w_min) { 200 next_helper(0, w_min); 201 goto advanced_plist0; 202 } 198 203 bool valid; 199 204 check_helper(i, did, w_min, valid); 200 205 if (!valid) { … … 210 215 skip_to_helper(0, new_did, w_min); 211 216 goto advanced_plist0; 212 217 } 218 max_remaining -= max_wt[i] - plist[i]->get_weight(); 213 219 } 214 220 return NULL; 215 221 }