From 3f0d68f921fc72a98b669b4a4e056e07cb3f052f Mon Sep 17 00:00:00 2001 From: Kenneth Anthony Giusti Date: Wed, 2 Mar 2011 19:02:00 +0000 Subject: QPID-3081: add statistic for queue flow control transitions git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1076329 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/QueueFlowLimit.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/broker/QueueFlowLimit.cpp') diff --git a/cpp/src/qpid/broker/QueueFlowLimit.cpp b/cpp/src/qpid/broker/QueueFlowLimit.cpp index a99c9de7df..21c7a2a737 100644 --- a/cpp/src/qpid/broker/QueueFlowLimit.cpp +++ b/cpp/src/qpid/broker/QueueFlowLimit.cpp @@ -138,8 +138,10 @@ void QueueFlowLimit::enqueued(const QueuedMessage& msg) flowStopped = true; QPID_LOG(info, "Queue \"" << queueName << "\": has reached " << flowStopSize << " enqueued bytes. Producer flow control activated." ); } - if (flowStopped && queueMgmtObj) + if (flowStopped && queueMgmtObj) { queueMgmtObj->set_flowStopped(true); + queueMgmtObj->inc_flowStoppedCount(); + } } /** @todo KAG: - REMOVE ONCE STABLE */ -- cgit v1.2.1