aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnna <anna@nextcloud.com>2024-07-17 15:36:46 +0200
committerGitHub <noreply@github.com>2024-07-17 15:36:46 +0200
commit19ba872e9aae98686ad61acd543f9945d8577797 (patch)
treead2762cab9498f0e82f962688a1e329d707b9ca1
parente4368f6a9f37985ab4f5911b4ca50dba8109827e (diff)
parent2201bce7d3a1b4d0788ebd132f9a05d60d7db310 (diff)
downloadnextcloud-server-19ba872e9aae98686ad61acd543f9945d8577797.tar.gz
nextcloud-server-19ba872e9aae98686ad61acd543f9945d8577797.zip
Merge pull request #45974 from nextcloud/fix/caldav-scheduling-job
fix(caldav): lower scheduling table size warning
-rw-r--r--apps/settings/lib/SetupChecks/SchedulingTableSize.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/settings/lib/SetupChecks/SchedulingTableSize.php b/apps/settings/lib/SetupChecks/SchedulingTableSize.php
index cf629f5b12c..b23972ca7dc 100644
--- a/apps/settings/lib/SetupChecks/SchedulingTableSize.php
+++ b/apps/settings/lib/SetupChecks/SchedulingTableSize.php
@@ -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(