diff --git a/src/applications/search/fulltextstorage/PhabricatorMySQLFulltextStorageEngine.php b/src/applications/search/fulltextstorage/PhabricatorMySQLFulltextStorageEngine.php index 3e02c78077..f86458c26b 100644 --- a/src/applications/search/fulltextstorage/PhabricatorMySQLFulltextStorageEngine.php +++ b/src/applications/search/fulltextstorage/PhabricatorMySQLFulltextStorageEngine.php @@ -238,7 +238,7 @@ final class PhabricatorMySQLFulltextStorageEngine } else { $select[] = qsprintf( $conn, - 'document.dateCreated AS fieldScore'); + 'document.documentCreated AS fieldScore'); } $exclude = $query->getParameter('exclude'); diff --git a/src/infrastructure/cluster/PhabricatorDatabaseRef.php b/src/infrastructure/cluster/PhabricatorDatabaseRef.php index a4f0259060..337d139df8 100644 --- a/src/infrastructure/cluster/PhabricatorDatabaseRef.php +++ b/src/infrastructure/cluster/PhabricatorDatabaseRef.php @@ -635,7 +635,7 @@ final class PhabricatorDatabaseRef $application_replicas = array(); $default_replicas = array(); foreach ($replicas as $replica) { - $master = $replica->getMaster(); + $master = $replica->getMasterRef(); if ($master->isApplicationHost($application)) { $application_replicas[] = $replica;