mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 21:38:54 +00:00
[ticket/16940] Optimize phpBB Native Search
- Fixed infinite loop PHPBB3-16940
This commit is contained in:
parent
90433d0d89
commit
ff6f7c4186
1 changed files with 2 additions and 2 deletions
|
@ -357,7 +357,7 @@ abstract class base implements search_backend_interface
|
||||||
$this->tidy();
|
$this->tidy();
|
||||||
$this->config['num_posts'] = $num_posts;
|
$this->config['num_posts'] = $num_posts;
|
||||||
|
|
||||||
if ($post_counter <= $max_post_id)
|
if ($post_counter < $max_post_id)
|
||||||
{
|
{
|
||||||
$totaltime = microtime(true) - $starttime;
|
$totaltime = microtime(true) - $starttime;
|
||||||
$rows_per_second = $row_count / $totaltime;
|
$rows_per_second = $row_count / $totaltime;
|
||||||
|
@ -402,7 +402,7 @@ abstract class base implements search_backend_interface
|
||||||
$post_counter = $ids[count($ids) - 1];
|
$post_counter = $ids[count($ids) - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($post_counter <= $max_post_id)
|
if ($post_counter < $max_post_id)
|
||||||
{
|
{
|
||||||
$totaltime = microtime(true) - $starttime;
|
$totaltime = microtime(true) - $starttime;
|
||||||
$rows_per_second = $row_count / $totaltime;
|
$rows_per_second = $row_count / $totaltime;
|
||||||
|
|
Loading…
Add table
Reference in a new issue