mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix(caldav): lower scheduling table size warning
Signed-off-by: Anna Larch <anna@nextcloud.com>
This commit is contained in:
parent
4362ed5361
commit
2201bce7d3
1 changed files with 6 additions and 2 deletions
|
|
@ -14,6 +14,8 @@ use OCP\SetupCheck\ISetupCheck;
|
|||
use OCP\SetupCheck\SetupResult;
|
||||
|
||||
class SchedulingTableSize implements ISetupCheck {
|
||||
public const MAX_SCHEDULING_ENTRIES = 50000;
|
||||
|
||||
public function __construct(
|
||||
private IL10N $l10n,
|
||||
private IDBConnection $connection,
|
||||
|
|
@ -36,9 +38,11 @@ class SchedulingTableSize implements ISetupCheck {
|
|||
$count = $query->fetchOne();
|
||||
$query->closeCursor();
|
||||
|
||||
if ($count > 500000) {
|
||||
if ($count > self::MAX_SCHEDULING_ENTRIES) {
|
||||
return SetupResult::warning(
|
||||
$this->l10n->t('You have more than 500 000 rows in the scheduling objects table. Please run the expensive repair jobs via occ maintenance:repair --include-expensive')
|
||||
$this->l10n->t('You have more than %s rows in the scheduling objects table. Please run the expensive repair jobs via occ maintenance:repair --include-expensive.', [
|
||||
self::MAX_SCHEDULING_ENTRIES,
|
||||
])
|
||||
);
|
||||
}
|
||||
return SetupResult::success(
|
||||
|
|
|
|||
Loading…
Reference in a new issue