diff options
author | Gordon Sim <gsim@apache.org> | 2012-04-26 19:16:44 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2012-04-26 19:16:44 +0000 |
commit | a5696b5fda8d92acd0b63ae8539bf9e4f175f6b1 (patch) | |
tree | d42b369d256a179cbd2adf6b49ea8fd4a1503275 | |
parent | 2f5999a049b1db7f559aadf268f3266a21eddc1e (diff) | |
download | qpid-python-a5696b5fda8d92acd0b63ae8539bf9e4f175f6b1.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@1331037 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/cpp/src/qpid/replication/ReplicationExchange.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/replication/ReplicationExchange.cpp b/qpid/cpp/src/qpid/replication/ReplicationExchange.cpp index dce0d750a4..66f4f14d0c 100644 --- a/qpid/cpp/src/qpid/replication/ReplicationExchange.cpp +++ b/qpid/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); |