Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 83E1E2009A8 for ; Tue, 17 May 2016 22:55:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8282A160A21; Tue, 17 May 2016 20:55:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C9EBA1607A8 for ; Tue, 17 May 2016 22:55:13 +0200 (CEST) Received: (qmail 35397 invoked by uid 500); 17 May 2016 20:55:13 -0000 Mailing-List: contact commits-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list commits@qpid.apache.org Received: (qmail 35383 invoked by uid 99); 17 May 2016 20:55:13 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2016 20:55:13 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E4DF8DFADE; Tue, 17 May 2016 20:55:12 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: tross@apache.org To: commits@qpid.apache.org Date: Tue, 17 May 2016 20:55:12 -0000 Message-Id: <218af767b7bd4858b183651ae84f2f6a@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] qpid-dispatch git commit: DISPATCH-338 - Default treatment for addresses is "balanced". archived-at: Tue, 17 May 2016 20:55:14 -0000 Repository: qpid-dispatch Updated Branches: refs/heads/master bab8a2b8c -> e590e9ed9 DISPATCH-338 - Default treatment for addresses is "balanced". Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/e9459c17 Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/e9459c17 Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/e9459c17 Branch: refs/heads/master Commit: e9459c1765f178e251e929a011ebc2f224d3d1b0 Parents: bab8a2b Author: Ted Ross Authored: Tue May 17 13:49:18 2016 -0400 Committer: Ted Ross Committed: Tue May 17 13:49:18 2016 -0400 ---------------------------------------------------------------------- src/router_core/connections.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/e9459c17/src/router_core/connections.c ---------------------------------------------------------------------- diff --git a/src/router_core/connections.c b/src/router_core/connections.c index 229a49b..90dd778 100644 --- a/src/router_core/connections.c +++ b/src/router_core/connections.c @@ -638,7 +638,7 @@ qd_address_treatment_t qdr_treatment_for_address_CT(qdr_core_t *core, qd_field_i if (in_phase) *in_phase = addr ? addr->in_phase : 0; if (out_phase) *out_phase = addr ? addr->out_phase : 0; - return addr ? addr->treatment : QD_TREATMENT_ANYCAST_CLOSEST; + return addr ? addr->treatment : QD_TREATMENT_ANYCAST_BALANCED; } @@ -649,7 +649,7 @@ qd_address_treatment_t qdr_treatment_for_address_hash_CT(qdr_core_t *core, qd_fi char *copy = storage; bool on_heap = false; int length = qd_field_iterator_length(iter); - qd_address_treatment_t trt = QD_TREATMENT_ANYCAST_CLOSEST; + qd_address_treatment_t trt = QD_TREATMENT_ANYCAST_BALANCED; if (length > HASH_STORAGE_SIZE) { copy = (char*) malloc(length + 1); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org For additional commands, e-mail: commits-help@qpid.apache.org