summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorKenneth Anthony Giusti <kgiusti@apache.org>2011-10-11 20:54:24 +0000
committerKenneth Anthony Giusti <kgiusti@apache.org>2011-10-11 20:54:24 +0000
commit42af48b0ecaf5d5dd62ef85400f913a85b9b00e4 (patch)
tree06142f455d736e8706b9eb0988a8c9993ce3e7f0 /cpp
parentec94396bd9c3e5e05376dbbc0254d3030e0b1728 (diff)
downloadqpid-python-42af48b0ecaf5d5dd62ef85400f913a85b9b00e4.tar.gz
QPID-3543: correctly dequeue messages that are auto-acknowledged.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1182084 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/broker/SemanticState.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/SemanticState.cpp b/cpp/src/qpid/broker/SemanticState.cpp
index 94d0cc87f7..dda481778d 100644
--- a/cpp/src/qpid/broker/SemanticState.cpp
+++ b/cpp/src/qpid/broker/SemanticState.cpp
@@ -348,7 +348,8 @@ bool SemanticState::ConsumerImpl::deliver(QueuedMessage& msg)
parent->record(record);
}
if (acquire && !ackExpected) { // auto acquire && auto accept
- record.accept( 0 /*no ctxt*/ );
+ queue->dequeue(0 /*ctxt*/, msg);
+ record.setEnded();
}
if (mgmtObject) { mgmtObject->inc_delivered(); }
return true;