From: Michael Date: Tue, 15 Mar 2022 18:45:13 +0000 (+0000) Subject: Fix the problem that the post update never stopped on larger systems X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0b10806ce322805f74b6ba991cb562edf7622897;p=friendica.git Fix the problem that the post update never stopped on larger systems --- diff --git a/src/Database/PostUpdate.php b/src/Database/PostUpdate.php index 9dbb0a9485..6d744a1ba1 100644 --- a/src/Database/PostUpdate.php +++ b/src/Database/PostUpdate.php @@ -1038,7 +1038,6 @@ class PostUpdate Logger::info('Start', ['uri-id' => $id]); - $start_id = $id; $rows = 0; $received = ''; @@ -1078,7 +1077,7 @@ class PostUpdate Logger::info('Processed', ['rows' => $rows, 'last' => $id, 'last-received' => $received]); - if ($start_id == $id) { + if ($rows <= 100) { DI::config()->set('system', 'post_update_version', 1452); Logger::info('Done'); return true;