'Determine whether or not two replicas of a databases are considered
to be in sync.
:param rinfo: remote database info
:param info: local database info
:param broker: database broker object
:param local_sync: cached last sync point between replicas
:returns: boolean indicating whether or not the replicas are in sync'

def _in_sync(self, rinfo, info, broker, local_sync):

    if (max(rinfo['point'], local_sync) >= info['max_row']):
        self.stats['no_change'] += 1
        self.logger.increment('no_changes')
        return True
    if (rinfo['hash'] == info['hash']):
        self.stats['hashmatch'] += 1
        self.logger.increment('hashmatches')
        broker.merge_syncs([{'remote_id': rinfo['id'], 'sync_point': rinfo['point']}], incoming=False)
        return True
