HomePhabricator

Correctly disinguish between "0 seconds behind master" and "not replicating"

Description

Correctly disinguish between "0 seconds behind master" and "not replicating"

Summary: Fixes T11159. We get two different values here (NULL and 0) with different meanings.

Test Plan:

  • Ran STOP SLAVE;.
  • Saw this:

Screen Shot 2016-07-03 at 2.12.57 PM.png (336×755 px, 32 KB)

  • Ran START SLAVE;.
  • Back to normal.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11159

Differential Revision: https://secure.phabricator.com/D16225