Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/check/PhabricatorMySQLSetupCheck.php
Show First 20 Lines • Show All 373 Lines • ▼ Show 20 Lines | if ($delta > 60) { | ||||
$host_name, | $host_name, | ||||
php_uname('n'), | php_uname('n'), | ||||
new PhutilNumber($delta))); | new PhutilNumber($delta))); | ||||
} | } | ||||
} | } | ||||
protected function shouldUseMySQLSearchEngine() { | protected function shouldUseMySQLSearchEngine() { | ||||
$search_engine = PhabricatorFulltextStorageEngine::loadEngine(); | $services = PhabricatorSearchService::getAllServices(); | ||||
return ($search_engine instanceof PhabricatorMySQLFulltextStorageEngine); | foreach ($services as $service) { | ||||
if ($service instanceof PhabricatorMySQLSearchHost) { | |||||
return true; | |||||
} | |||||
} | |||||
return false; | |||||
} | } | ||||
} | } |