1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 01:32:42 +01:00
phorge-phorge/src/applications/repository/daemon
epriestley dd96967306 Only increment status message cursor if we're going to consume the message
Summary:
Fixes the long uptake we saw on `meta.phacility.com`. I regressed this in D11795.

We make three calls to this method, but only one actually consumes the messages. The other two are just checking to see if there are any messages.

Only move the cursor up if we're actually going to process the messages.

Test Plan: Sort of tricky to test convincingly since it's inherently race-prone, but ran `debug pulllocal` and pushed update messages and saw it pick them up.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D11808
2015-02-18 12:53:37 -08:00
..
PhabricatorGitGraphStream.php Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00
PhabricatorMercurialGraphStream.php Move Git discovery into DiscoveryEngine 2014-01-17 11:48:53 -08:00
PhabricatorRepositoryGraphStream.php Move Git discovery into DiscoveryEngine 2014-01-17 11:48:53 -08:00
PhabricatorRepositoryPullLocalDaemon.php Only increment status message cursor if we're going to consume the message 2015-02-18 12:53:37 -08:00