Commit 4e3d887a by Andrea Manzi

EOS-2586: use closest node to the client GEOTAG

parent f7f8bdfd
......@@ -1125,6 +1125,10 @@ GeoTreeEngine::placeNewReplicasOneGroup(FsGroup* group,
startFromNode =
entry->foregroundFastStruct->tag2NodeIdx->getClosestFastTreeNode(
startFromGeoTag.c_str());
} else if (!clientGeoTag.empty()) {
startFromNode =
entry->foregroundFastStruct->tag2NodeIdx->getClosestFastTreeNode(
clientGeoTag.c_str());
}
// actually do the job
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment