'Call master to perform phase 2 of rebalancing.'

def HandleRebalancePhase2(self):

    if (not self.MASTER):
        self._EmptyResponse(constants.RESPONSE_NOT_MASTER_SERVER)
        return
    reb = rdf_data_server.DataServerRebalance.FromSerializedString(self.post_data)
    current = self.MASTER.IsRebalancing()
    if ((not current) or (current.id != reb.id)):
        self._EmptyResponse(constants.RESPONSE_WRONG_TRANSACTION)
        return
    if (not self.MASTER.CopyRebalanceFiles()):
        self._EmptyResponse(constants.RESPONSE_FILES_NOT_COPIED)
        return
    self._EmptyResponse(constants.RESPONSE_OK)
