mirror of
https://github.com/friendica/friendica
synced 2024-12-23 10:00:20 +00:00
Merge pull request #11347 from annando/post-update
Fix the problem that the post update never stopped on larger systems
This commit is contained in:
commit
6818c8e69a
1 changed files with 1 additions and 2 deletions
|
@ -1038,7 +1038,6 @@ class PostUpdate
|
||||||
|
|
||||||
Logger::info('Start', ['uri-id' => $id]);
|
Logger::info('Start', ['uri-id' => $id]);
|
||||||
|
|
||||||
$start_id = $id;
|
|
||||||
$rows = 0;
|
$rows = 0;
|
||||||
$received = '';
|
$received = '';
|
||||||
|
|
||||||
|
@ -1078,7 +1077,7 @@ class PostUpdate
|
||||||
|
|
||||||
Logger::info('Processed', ['rows' => $rows, 'last' => $id, 'last-received' => $received]);
|
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);
|
DI::config()->set('system', 'post_update_version', 1452);
|
||||||
Logger::info('Done');
|
Logger::info('Done');
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue