summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorKenneth Anthony Giusti <kgiusti@apache.org>2011-11-02 15:37:03 +0000
committerKenneth Anthony Giusti <kgiusti@apache.org>2011-11-02 15:37:03 +0000
commitaa47a281449f8590baed80869d7fd33bc5fc7860 (patch)
tree7feda25e78d9aefd5108b20a8156b41fc203f09e /cpp/src
parent359afe88435f6f14f4a628c67f83a4cbd5559682 (diff)
downloadqpid-python-aa47a281449f8590baed80869d7fd33bc5fc7860.tar.gz
QPID-3577: assign null group names to the default group
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1196635 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/broker/MessageGroupManager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/MessageGroupManager.cpp b/cpp/src/qpid/broker/MessageGroupManager.cpp
index 77108c10d5..00d1a58bef 100644
--- a/cpp/src/qpid/broker/MessageGroupManager.cpp
+++ b/cpp/src/qpid/broker/MessageGroupManager.cpp
@@ -77,12 +77,15 @@ MessageGroupManager::GroupState& MessageGroupManager::findGroup( const QueuedMes
if (headers) {
qpid::framing::FieldTable::ValuePtr id = headers->get( groupIdHeader );
if (id && id->convertsTo<std::string>()) {
- group = id->get<std::string>();
+ std::string tmp = id->get<std::string>();
+ if (!tmp.empty()) // empty group is reserved
+ group = tmp;
}
}
if (cachedGroup && group == lastGroup) {
hits++;
+ lastMsg = thisMsg;
return *cachedGroup;
}