You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gm...@apache.org on 2019/03/15 14:14:54 UTC

[qpid-dispatch] branch master updated: DISPATCH-1283 - Added call to update counters inside the updated_deliveries loop of qdr_delete_delivery_CT. The deliveries in that list must be accounted for. This closes #465.

This is an automated email from the ASF dual-hosted git repository.

gmurthy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git


The following commit(s) were added to refs/heads/master by this push:
     new b097d7a  DISPATCH-1283 - Added call to update counters inside the updated_deliveries loop of qdr_delete_delivery_CT. The deliveries in that list must be accounted for. This closes #465.
b097d7a is described below

commit b097d7a5085ab9e58207247cafc16c0ec7b36a0e
Author: Ganesh Murthy <gm...@redhat.com>
AuthorDate: Thu Mar 14 15:50:18 2019 -0400

    DISPATCH-1283 - Added call to update counters inside the updated_deliveries loop of qdr_delete_delivery_CT. The deliveries in that list must be accounted for. This closes #465.
---
 src/router_core/connections.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/router_core/connections.c b/src/router_core/connections.c
index 1ac8bcf..8498ff3 100644
--- a/src/router_core/connections.c
+++ b/src/router_core/connections.c
@@ -666,6 +666,11 @@ static void qdr_link_cleanup_deliveries_CT(qdr_core_t *core, qdr_connection_t *c
     qdr_delivery_ref_t *ref = DEQ_HEAD(updated_deliveries);
     while (ref) {
         //
+        // Updates global and link level delivery counters like presettled_deliveries, accepted_deliveries, released_deliveries etc
+        //
+        qdr_increment_delivery_counters_CT(core, ref->dlv);
+        ref->dlv->link = 0;
+        //
         // Now our reference
         //
         qdr_delivery_decref_CT(core, ref->dlv, "qdr_link_cleanup_deliveries_CT - remove from updated list");


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org