From 0d292abbf0e016dd73b855abf702b1f81fbf26c2 Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 15 Mar 2011 14:36:01 -0700 Subject: [PATCH] Prevent daemons from spinning when they hit duplicate key exceptions. --- .../base/PhabricatorRepositoryCommitDiscoveryDaemon.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/applications/repository/daemon/commitdiscovery/base/PhabricatorRepositoryCommitDiscoveryDaemon.php b/src/applications/repository/daemon/commitdiscovery/base/PhabricatorRepositoryCommitDiscoveryDaemon.php index 3b92f78a68..f538e2de2b 100644 --- a/src/applications/repository/daemon/commitdiscovery/base/PhabricatorRepositoryCommitDiscoveryDaemon.php +++ b/src/applications/repository/daemon/commitdiscovery/base/PhabricatorRepositoryCommitDiscoveryDaemon.php @@ -86,6 +86,7 @@ abstract class PhabricatorRepositoryCommitDiscoveryDaemon // more than once when looking at history, or because of races or // data inconsistency or cosmic radiation; in any case, we're still // in a good state if we ignore the failure. + $this->commitCache[$commit_identifier] = true; } $this->stillWorking();