From b2cdebefea836011d1baa75e14b587bd8dbe869d Mon Sep 17 00:00:00 2001 From: epriestley Date: Sat, 26 Nov 2016 06:07:55 -0800 Subject: [PATCH] Fix two errors from the error logs Summary: Found these in the `secure` error logs: one bad call, one bad column. Test Plan: Searched for empty string. Double-checked method name. Reviewers: chad Reviewed By: chad Differential Revision: https://secure.phabricator.com/D16948 --- .../fulltextstorage/PhabricatorMySQLFulltextStorageEngine.php | 2 +- src/infrastructure/cluster/PhabricatorDatabaseRef.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;