def HandleRebalancePhase2(self):
    if not self.MASTER:
      self._EmptyResponse(constants.RESPONSE_NOT_MASTER_SERVER)
      return
    reb = rdf_data_server.DataServerRebalance(self.post_data)
    current = self.MASTER.IsRebalancing()
    if not current or current.id != reb.id:
      # Not the same 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)
Call master to perform phase 2 of rebalancing.
dataset/ETHPy150Open google/grr/grr/server/data_server/data_server.py/DataServerHandler.HandleRebalancePhase2