DISPATCH-319 - Generate the valid-origin correctly for each computed path. Don't assume that the path from A -> Z is the reverse of the path from Z -> A.
Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/2138da72 Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/2138da72 Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/2138da72 Branch: refs/heads/master Commit: 2138da7223f98d84a6f9bdbb02d938f83e42181c Parents: 465e537 Author: Ted Ross <[email protected]> Authored: Wed May 11 13:48:40 2016 -0400 Committer: Ted Ross <[email protected]> Committed: Wed May 11 13:48:40 2016 -0400 ---------------------------------------------------------------------- python/qpid_dispatch_internal/router/path.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/2138da72/python/qpid_dispatch_internal/router/path.py ---------------------------------------------------------------------- diff --git a/python/qpid_dispatch_internal/router/path.py b/python/qpid_dispatch_internal/router/path.py index 2e15257..1df094c 100644 --- a/python/qpid_dispatch_internal/router/path.py +++ b/python/qpid_dispatch_internal/router/path.py @@ -110,7 +110,8 @@ class PathEngine(object): path.append(v) nodes.remove(v) if v == self.id: - valid_origin[root].extend(path) + for dest in path: + valid_origin[dest].append(root) u = v v = prev[u] return valid_origin --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
