summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorKen Giusti <kgiusti@apache.org>2011-11-02 15:37:03 +0000
committerKen Giusti <kgiusti@apache.org>2011-11-02 15:37:03 +0000
commit5612bc6136c7e06f56309428cbf033ad2867d635 (patch)
tree7feda25e78d9aefd5108b20a8156b41fc203f09e /cpp/src
parent42e95ed706f8c5394198f89300f996665cdc6e09 (diff)
downloadqpid-python-5612bc6136c7e06f56309428cbf033ad2867d635.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;
}