summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/broker/SemanticState.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/SemanticState.cpp b/cpp/src/qpid/broker/SemanticState.cpp
index fa2ea38333..52975ea96e 100644
--- a/cpp/src/qpid/broker/SemanticState.cpp
+++ b/cpp/src/qpid/broker/SemanticState.cpp
@@ -261,6 +261,7 @@ SemanticState::ConsumerImpl::ConsumerImpl(SemanticState* _parent,
bool SemanticState::ConsumerImpl::deliver(QueuedMessage& msg)
{
+std::cout << " SemanticState::ConsumerImpl::deliver()" << windowing << "- " << ackExpected << std:: endl <<std::flush;
if (!parent->getSession().isAttached()) {
return false;
}
@@ -273,14 +274,14 @@ bool SemanticState::ConsumerImpl::deliver(QueuedMessage& msg)
blocked = true;
} else {
blocked = false;
-
Mutex::ScopedLock locker(parent->deliveryLock);
DeliveryId deliveryTag =
parent->deliveryAdapter.deliver(msg, token);
if (windowing || ackExpected) {
parent->record(DeliveryRecord(msg, queue, name, token, deliveryTag, acquire, !ackExpected));
- } else if (acquire && !ackExpected) {
+ }
+ if (acquire && !ackExpected) {
queue->dequeue(0, msg.payload);
}
}