summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorJonathan Robie <jonathan@apache.org>2010-09-28 12:46:37 +0000
committerJonathan Robie <jonathan@apache.org>2010-09-28 12:46:37 +0000
commitec50c896058f7f53cc9b156b76eaa5ff44f4b465 (patch)
tree82d0ec421610c1265c0125160d20c5805b8db037 /cpp/src
parent82e45c10cf8fe290e83cf69df9d53b28fbb80535 (diff)
downloadqpid-python-ec50c896058f7f53cc9b156b76eaa5ff44f4b465.tar.gz
Ensure that a rejected message is also dequeued.
Without this fix, rejected messages were dropped, but not dequeued. This meant that durable messages would 're-appear' after a restart. This also meant that the queue message count was incorrect if messages had been rejected. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1002147 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/broker/DeliveryRecord.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/DeliveryRecord.cpp b/cpp/src/qpid/broker/DeliveryRecord.cpp
index 64db84b6ec..b3a49c485d 100644
--- a/cpp/src/qpid/broker/DeliveryRecord.cpp
+++ b/cpp/src/qpid/broker/DeliveryRecord.cpp
@@ -140,6 +140,8 @@ void DeliveryRecord::reject()
//just drop it
QPID_LOG(info, "Dropping rejected message from " << queue->getName());
}
+
+ dequeue();
}
uint32_t DeliveryRecord::getCredit() const