From: erickson Date: Fri, 17 Oct 2008 15:15:17 +0000 (+0000) Subject: after all search results scanned, we know the exact hit count, so use that instead... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6c9857ab59d1bea9b98e83f2a2f91f35133bbb73;p=Evergreen.git after all search results scanned, we know the exact hit count, so use that instead of the estimated count git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2_3@10858 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm index d9cb12df27..f17de949fe 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm @@ -799,7 +799,10 @@ sub staged_search { last if $current_count >= ($user_limit + $user_offset); # we've scanned all possible hits - last if $summary->{checked} < $superpage_size; + if($summary->{checked} < $superpage_size) { + $est_hit_count = scalar(@$all_results); + last; + } } my @results = grep {defined $_} @$all_results[$user_offset..($user_offset + $user_limit - 1)];