Repository: trafficserver Updated Branches: refs/heads/master c9b2241c4 -> bf04f7fe5
TS-4030: Fixed a regression test failure In FindParent(), ParentResult::start_parent was not initialized properly. Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/bf04f7fe Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/bf04f7fe Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/bf04f7fe Branch: refs/heads/master Commit: bf04f7fe5aefe570f60e8de3a054fd49bd4f117c Parents: c9b2241 Author: John J. Rushford <[email protected]> Authored: Tue Dec 15 19:49:36 2015 +0000 Committer: Phil Sorber <[email protected]> Committed: Tue Dec 15 12:57:38 2015 -0700 ---------------------------------------------------------------------- proxy/ParentSelection.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/bf04f7fe/proxy/ParentSelection.cc ---------------------------------------------------------------------- diff --git a/proxy/ParentSelection.cc b/proxy/ParentSelection.cc index 69ce74c..3367351 100644 --- a/proxy/ParentSelection.cc +++ b/proxy/ParentSelection.cc @@ -555,7 +555,7 @@ ParentRecord::FindParent(bool first_call, ParentResult *result, RequestData *rda // Fall through to round robin case P_STRICT_ROUND_ROBIN: cur_index = ink_atomic_increment((int32_t *)&rr_next, 1); - cur_index = cur_index % num_parents; + cur_index = result->start_parent = cur_index % num_parents; break; case P_NO_ROUND_ROBIN: cur_index = result->start_parent = 0;
