diff options
author | Gordon Sim <gsim@apache.org> | 2013-08-05 20:12:27 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2013-08-05 20:12:27 +0000 |
commit | 66efa54f6d9621ad4dcd9a0a86842c4a835af971 (patch) | |
tree | 83703a4176a4135a78df668fc1729dfe9e1a530c | |
parent | e9734954a808abd4255e7c82e793d390fa78d7df (diff) | |
download | qpid-python-66efa54f6d9621ad4dcd9a0a86842c4a835af971.tar.gz |
QPID-5041: ensure persistence id is not lost when annotation is added
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1510696 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | cpp/src/qpid/broker/Message.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/Message.cpp b/cpp/src/qpid/broker/Message.cpp index ec44404793..197d097183 100644 --- a/cpp/src/qpid/broker/Message.cpp +++ b/cpp/src/qpid/broker/Message.cpp @@ -182,8 +182,10 @@ void Message::addAnnotation(const std::string& key, const qpid::types::Variant& void Message::annotationsChanged() { if (persistentContext) { + uint64_t id = persistentContext->getPersistenceId(); persistentContext = persistentContext->merge(annotations); persistentContext->setIngressCompletion(encoding); + persistentContext->setPersistenceId(id); } } |