diff options
| author | Kenneth Anthony Giusti <kgiusti@apache.org> | 2011-10-11 20:54:24 +0000 |
|---|---|---|
| committer | Kenneth Anthony Giusti <kgiusti@apache.org> | 2011-10-11 20:54:24 +0000 |
| commit | f8536f21056ac76648348df4e3bc543185f59abb (patch) | |
| tree | 30efa4f6d174f6c3c93709a97adf7c39a3a63ce0 /qpid/cpp/src | |
| parent | c58ae888d6d104bb1120d298bbc934e13d85b250 (diff) | |
| download | qpid-python-f8536f21056ac76648348df4e3bc543185f59abb.tar.gz | |
QPID-3543: correctly dequeue messages that are auto-acknowledged.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1182084 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/broker/SemanticState.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/broker/SemanticState.cpp b/qpid/cpp/src/qpid/broker/SemanticState.cpp index 94d0cc87f7..dda481778d 100644 --- a/qpid/cpp/src/qpid/broker/SemanticState.cpp +++ b/qpid/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; |
