summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2012-04-26 19:16:44 +0000
committerGordon Sim <gsim@apache.org>2012-04-26 19:16:44 +0000
commit34b2a6fcc63310f1dcf4b448b6dc24e42e74adee (patch)
treecc7c3add2ed20ca559794297fcff23e78fdfba11 /cpp/src
parent489e1a000380379848eca75794494ea50d590a83 (diff)
downloadqpid-python-34b2a6fcc63310f1dcf4b448b6dc24e42e74adee.tar.gz
QPID-3974: update statistics for dropped duplicate messages in replication exchange (patch from Pavel Moravec)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1331037 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/replication/ReplicationExchange.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/qpid/replication/ReplicationExchange.cpp b/cpp/src/qpid/replication/ReplicationExchange.cpp
index dce0d750a4..66f4f14d0c 100644
--- a/cpp/src/qpid/replication/ReplicationExchange.cpp
+++ b/cpp/src/qpid/replication/ReplicationExchange.cpp
@@ -60,7 +60,13 @@ void ReplicationExchange::route(Deliverable& msg)
if (args) {
int eventType = args->getAsInt(REPLICATION_EVENT_TYPE);
if (eventType) {
- if (isDuplicate(args)) return;
+ if (isDuplicate(args)) {
+ if (mgmtExchange != 0) {
+ mgmtExchange->inc_msgDrops();
+ mgmtExchange->inc_byteDrops(msg.contentSize());
+ }
+ return;
+ }
switch (eventType) {
case ENQUEUE:
handleEnqueueEvent(args, msg);