Skip to content
Snippets Groups Projects
Commit 1bb3a9fb authored by ajf5's avatar ajf5
Browse files

new replication -> pt7

parent 56f3331e
No related branches found
No related tags found
No related merge requests found
...@@ -98,6 +98,7 @@ void Node::debugOutputRep(){ ...@@ -98,6 +98,7 @@ void Node::debugOutputRep(){
} }
if (!members.count(get<1>(minKey))){ if (!members.count(get<1>(minKey))){
int index = 0; int index = 0;
if (!randSender.size()) randSender.push_back(get<1>(minKey));
repTarget = hashRing->getRandomNode(tuple<int,int,int>(get<1>(minKey), get<1>(minKey), randSender[0])); repTarget = hashRing->getRandomNode(tuple<int,int,int>(get<1>(minKey), get<1>(minKey), randSender[0]));
while (locations.count(repTarget) && index < 20){ while (locations.count(repTarget) && index < 20){
repTarget = hashRing->getRandomNode(tuple<int,int,int>(get<1>(minKey), repTarget, randSender[0])); repTarget = hashRing->getRandomNode(tuple<int,int,int>(get<1>(minKey), repTarget, randSender[0]));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment