HomePhabricator

Only increment status message cursor if we're going to consume the message

Description

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

Details

Provenance
epriestleyAuthored on
epriestleyPushed on Feb 18 2015, 8:53 PM
Reviewer
btrahan
Differential Revision
D11808: Only increment status message cursor if we're going to consume the message
Parents
rP6a8f31a0ecbc: Fix undefined variable
Branches
Unknown
Tags
Unknown