if (!nRootReplication) {
// use 0-root replication strategy
PeerAddress closest = closest(myResponsibleLocation);
if (!closest.peerId().equals(selfAddress.peerId())) {
if (isInReplicationRange(myResponsibleLocation, selfAddress, replicationFactor)) {
if (backend.updateResponsibilities(myResponsibleLocation, closest.peerId())) {
LOG.debug("I {} didn't know that {} is responsible for {}.", selfAddress, closest,
myResponsibleLocation);
// notify that someone else is now responsible for the
// content with key responsibleLocations
notifyOtherResponsible(myResponsibleLocation, closest);