tumblr/jetpants — pull request #7 by eelias (2013-02-08 22:54:35+00:00)
Title: Pause two replicas at identical coordinates

This branch adds two new methods to Jetpants::DB:

* pause_replication_with(sibling) stops replication on self and sibling at the exact same coordinates. This can be useful in situations in which query results must be compared between slaves. For example, when using Percona's pt-upgrade tool to ensure that query results are unchanged in a newer version of MySQL.
* ahead_of?(node) returns true if self's replication progress is ahead of another node in the same pool. It's primarily a helper method used by pause_replication_with.